Ejemplo n.º 1
0
 /// <summary>
 /// Stop the timer, set cancelled flag, close any current process and close the background form.
 /// Once this has all been done, the application should end.
 /// </summary>
 private void Close()
 {
     timer.Stop();
     cancelled = true;
     if (timer.Process != null && !timer.Process.HasExited)
     {
         timer.Process.CloseMainWindow();
     }
     frmBackground.Close();
 }