protected override void OnClosing(CancelEventArgs e)
 {
     OnCancelClicked?.Invoke(this, new EventArgs());
     OnOkClicked     = null;
     OnCancelClicked = null;
     base.OnClosing(e);
 }
Пример #2
0
 /// <summary>
 /// Handles the Click event of the Cancel control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="RoutedEventArgs" /> instance containing the event data.</param>
 private void Cancel_Click(object sender, RoutedEventArgs e)
 {
     if (OnCancelClicked != null)
     {
         OnCancelClicked.Invoke(sender, e);
     }
 }
Пример #3
0
 private void Awake()
 {
     _cancelButton.onClick.AddListener(() => {
         OnCancelClicked?.Invoke();
         Hide();
     });
 }
 public void OnCancelClicked_Invoked()
 {
     OnCancelClicked?.Invoke(this, new EventArgs());
 }
Пример #5
0
 private void button2_Click(object sender, EventArgs e)
 {
     OnCancelClicked?.Invoke(this, e);
 }
Пример #6
0
 /// <summary>
 /// Cancel Button
 /// </summary>
 /// <param name="sender">Sender of event</param>
 /// <param name="e">Event arguments</param>
 private void Cancel_Click(object sender, RoutedEventArgs e)
 {
     OnCancelClicked?.Invoke(sender, e);
 }
Пример #7
0
 private void CancelWorkerButton_Click(object sender, RoutedEventArgs e) => OnCancelClicked?.Invoke();
Пример #8
0
 private void ProcessCancel()
 {
     OnCancelClicked?.Invoke();
 }
Пример #9
0
 private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     OnCancelClicked?.Invoke(this, e);
 }