class A { /// some variables bool isCorrect; . . . public Button1_click() { if(some_condition) { isCorrect=true; } } public Button2_click() { if(isCorrect) { ...some action } } }
Button2_click
static
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)