Beispiel #1
0
 private static void Cleanup()
 {
     if (!HelperProcess.HasExited)
     {
         HelperProcess.Kill();
     }
     if (Proxy != null)
     {
         Proxy.Dispose();
     }
     trayIcon.Visible = false;
     trayIcon.Dispose();
     Logger.Dispose();
 }
Beispiel #2
0
 private static void Cleanup()
 {
     if (!HelperProcess.HasExited)
     {
         HelperProcess.CloseMainWindow();
         if (!HelperProcess.WaitForExit(500))
         {
             killed = true;
             HelperProcess.Kill();
         }
     }
     if (Proxy != null)
     {
         Proxy.Dispose();
     }
     trayIcon.Visible = false;
     trayIcon.Dispose();
     Logger.Dispose();
 }