void ServerGUI_Closing(object sender, CancelEventArgs e)
 {
     trayIcon.notifyIcon.Icon    = null;
     trayIcon.notifyIcon.Visible = false;
     trayIcon.Dispose();
     unregisterCallbacks();
     ClipboardMonitor.DisableCapture();
 }
Beispiel #2
0
 private void ServerGUI_Unloaded(object sender, RoutedEventArgs e)
 {
     unregisterCallbacks();
     trayIcon.notifyIcon.Icon    = null;
     trayIcon.notifyIcon.Visible = false;
     trayIcon.Dispose();
     loginWin.IsClosingDisabled = false;
     loginWin.Close();
     ClipboardMonitor.DisableCapture();
 }