Beispiel #1
0
 /// <summary>
 /// Shut down the popup window and dispose the notify icon (otherwise it hangs around in the task bar until you mouse over)
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void CloseButton_Click(object sender, RoutedEventArgs e)
 {
     extendedNotifyIcon.Dispose();
     this.Close();
 }
Beispiel #2
0
 private void OnClose(object sender, RoutedEventArgs e)
 {
     _extendedNotifyIcon.Dispose();
     Close();
 }
 /// <summary>
 /// Shut down the popup window and dispose the notify icon (otherwise it hangs around in the task bar until you mouse over)
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void CloseButton_Click(object sender, RoutedEventArgs e)
 {
     extendedNotifyIcon.Dispose();
     Application.Current.Shutdown(); // Exit
 }
Beispiel #4
0
 protected override void OnClosed(EventArgs e)
 {
     base.OnClosed(e);
     _notifyIcon.Dispose();
     App.Current.MainWindow.Close();
 }