Ejemplo n.º 1
0
 private void Cancel_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show(this, "Are you sure you want to stop the process? This operation cannot be undone.", "Confirmation required.", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.Yes)
     {
         CancellationRequest?.Invoke(this, EventArgs.Empty);
     }
 }
Ejemplo n.º 2
0
 public void OnCancellationRequest(object sender, EventArgs e)
 {
     CancellationRequest?.Invoke(sender, e);
 }