Exemple #1
0
 // This event handler is where the actual,
 // potentially time-consuming work is done.
 private void DoWork(object sender, DoWorkEventArgs e)
 {
     try
     {
         doWork();
         finished = true;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
         UtilLog.AddError(TAG, ex.ToString());
     }
 }