コード例 #1
0
 private void ThisButton_Click(object sender, RoutedEventArgs e)
 {
     if (CxClick != null)
     {
         CxClick.Invoke(this, e);
     }
     else
     {
         CustomMessageBox.ShowMessageHandler("Click");
     }
 }
コード例 #2
0
 public void OnClick()
 {
     if (CxClick != null)
     {
         Selected    = !Selected;
         Highlighted = !Highlighted;
         CxClick.Invoke(this, new RoutedEventArgs());
     }
     else
     {
         Selected    = !Selected;
         Highlighted = !Highlighted;
         CustomMessageBox.ShowMessageHandler("Click");
     }
 }
コード例 #3
0
 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");
     }
 }
コード例 #4
0
 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");
     }
 }
コード例 #5
0
        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);
            }
        }