Пример #1
0
 static void Exit_Click(object sender, EventArgs e)
 {
     _icon.Visible = false;
     _icon.Dispose();
     _mgr.Stop();
     Environment.Exit(0);
 }
Пример #2
0
 static void _mouseHook_OnMouseActivity(object sender, MouseEventArgs e)
 {
     _mouseHook.Stop();
     _keyHook.Stop();
     Environment.Exit(0);
 }