Пример #1
0
 private void Exit(object sender, EventArgs eventArgs)
 {
     Overlay.Overlay.Instance.Stop();
     MessageLoop.GetInstance().Stop();
     _trayIcon.Visible = false;
     Application.Exit();
 }
Пример #2
0
        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();
        }