This is my code
private void buttonClickone(object sender, RoutedEventArgs e) {
if (WhichV == -1) {
ShowMessage(PleaseSelectXXX);
return;
}
ButtonClick(1);
BeginOPHandler(Ep, null);
}
My logic here is, if the condition of the if-statement is met, I want to uncheck the toggle button but not perform the BeginOPHandler(Ep, null) operation.
How can I do that?
The
ifstatement has also anelsecase