예제 #1
0
 void Exit(object sender, EventArgs e)
 {
     // Hide tray icon, otherwise it will remain shown until user mouses over it
     _trayIcon.Visible = false;
     _hostHelper.Cancel();
     Application.Exit();
 }
 void Exit(object sender, EventArgs e)
 {
     // Hide tray icon, otherwise it will remain shown until user mouses over it
     _trayIcon.Visible = false;
     _hostHelper.Cancel();
     foreach (IRemoteCommand command in _commandsManager.Cast <IRemoteCommand>())
     {
         command.Dispose();
     }
     Application.Exit();
 }