Example #1
0
 protected override void ExitThreadCore()
 {
     // before we exit, let forms clean themselves up.
     if (infoForm != null)
     {
         infoForm.Close();
     }
     if (aboutForm != null)
     {
         aboutForm.Close();
     }
     if (configForm != null)
     {
         configForm.Close();
     }
     if (reconfigConfirm != null)
     {
         reconfigConfirm.Close();
     }
     notifyIcon.Visible = false; // should remove lingering tray icon
     base.ExitThreadCore();
 }