void ServerGUI_Closing(object sender, CancelEventArgs e)
 {
     trayIcon.notifyIcon.Icon    = null;
     trayIcon.notifyIcon.Visible = false;
     trayIcon.Dispose();
     unregisterCallbacks();
     ClipboardMonitor.DisableCapture();
 }
示例#2
0
 void ServerGUI_Loaded(object sender, RoutedEventArgs e)
 {
     loginWin.IsClosingDisabled = false;
     registerCallbacks();
     ClipboardMonitor.ClipboardViewer = this;
     ClipboardMonitor.EnableCapture();
     ClipboardMonitor.ClipboardChanged += ServerGUI_OnClipbardChanged;
 }
示例#3
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();
 }
 void ServerGUI_Loaded(object sender, RoutedEventArgs e)
 {
     ClipboardMonitor.ClipboardViewer = this;
     ClipboardMonitor.EnableCapture();
     ClipboardMonitor.ClipboardChanged += ServerGUI_OnClipbardChanged;
 }