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