Esempio n. 1
0
 private void Busy_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (BusyBackgroundWorker.IsBusy)
     {
         e.Cancel = true;
         BusyBackgroundWorker.CancelAsync();
     }
     else
     {
         DialogResult = Completed ? DialogResult.OK : DialogResult.Cancel;
     }
 }
Esempio n. 2
0
 private void Busy_Load(object sender, EventArgs e)
 {
     BusyBackgroundWorker.RunWorkerAsync();
 }