Пример #1
0
 static void tdDownload_Closing(object sender, TaskDialogClosingEventArgs e)
 {
     if (e.TaskDialogResult == TaskDialogResult.Cancel && client.IsBusy)
     {
         client.CancelAsync();
     }
 }
Пример #2
0
 private void OnDialogClosing(object sender, TaskDialogClosingEventArgs e)
 {
     // Any button clicks are considered a "commit" by the dialog, unless
     // closing is explicitly cancelled
     if (e.CustomButton == "increaseButton" || e.CustomButton == "decreaseButton")
     {
         e.Cancel = true;
     }
 }
Пример #3
0
 void dialog_Closing(object sender, TaskDialogClosingEventArgs e)
 {
     Console.WriteLine(e.TaskDialogResult);
 }
Пример #4
0
 private void OnDialogClosing(object sender, TaskDialogClosingEventArgs e)
 {
     // Can check e.CustomButton and e.StandardButton properties
     // to determine whether or not to cancel this Close event.
 }
Пример #5
0
 //Event fires when taskDialog closes.
 void taskDialogMain_Closing(object sender, TaskDialogClosingEventArgs e)
 {
     this.Close();
 }