protected override void OnClosing(CancelEventArgs e) { OnCancelClicked?.Invoke(this, new EventArgs()); OnOkClicked = null; OnCancelClicked = null; base.OnClosing(e); }
/// <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); } }
private void Awake() { _cancelButton.onClick.AddListener(() => { OnCancelClicked?.Invoke(); Hide(); }); }
public void OnCancelClicked_Invoked() { OnCancelClicked?.Invoke(this, new EventArgs()); }
private void button2_Click(object sender, EventArgs e) { OnCancelClicked?.Invoke(this, e); }
/// <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); }
private void CancelWorkerButton_Click(object sender, RoutedEventArgs e) => OnCancelClicked?.Invoke();
private void ProcessCancel() { OnCancelClicked?.Invoke(); }
private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { OnCancelClicked?.Invoke(this, e); }