private void Exit(object sender, EventArgs eventArgs) { Overlay.Overlay.Instance.Stop(); MessageLoop.GetInstance().Stop(); _trayIcon.Visible = false; Application.Exit(); }
public static void Main() { Overlay.Overlay.Instance.Run(); MessageLoop.GetInstance().Run(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new TrayForm()); Overlay.Overlay.Instance.Join(); MessageLoop.GetInstance().Join(); HotkeyProcessor.GetInstance().Close(); }