private void ThisButton_Click(object sender, RoutedEventArgs e) { if (CxClick != null) { CxClick.Invoke(this, e); } else { CustomMessageBox.ShowMessageHandler("Click"); } }
public void OnClick() { if (CxClick != null) { Selected = !Selected; Highlighted = !Highlighted; CxClick.Invoke(this, new RoutedEventArgs()); } else { Selected = !Selected; Highlighted = !Highlighted; CustomMessageBox.ShowMessageHandler("Click"); } }
private void Button_Click(object sender, RoutedEventArgs e) { if (CxClick != null) { Selected = !Selected; Highlighted = !Highlighted; CxClick.Invoke(this, e); } else { Selected = !Selected; Highlighted = !Highlighted; CustomMessageBox.ShowMessageHandler("Click"); } }
private void ThisButton_Click(object sender, RoutedEventArgs e) { if (IsToggle) { Cheked = !Cheked; } if (CxClick != null) { CxClick.Invoke(this, e); } else { MessageBox.Show("ButtonClik is Empty"); } }
private void Button_Click(object sender, RoutedEventArgs e) { Selected = !Selected; Highlighted = !Highlighted; if (CxClick != null) { CxClick.Invoke(this, e); } else { // CustomMessageBox.ShowMessageHandler("Click"); } if (ColectionParent != null) { ColectionParent.InvokeSelectionChanged(this); } }