private void SignInWindow_Closed(object sender, EventArgs e) { signInWindow.Closed -= SignInWindow_Closed; signInWindow = null; if (CheckAccountId(false)) { ViewModel.ClipboardActivities.Clear(); ClipboardActivity.Visibility = Visibility.Collapsed; notifyIcon.ShowBalloonTip(int.MaxValue, "Roamit universal clipboard is running in the background.", "You can check the status and change settings by clicking the Roamit icon in the system tray.", ToolTipIcon.None); TryRegisterForStartup(); } }
private void InitSignInWindow() { signInWindow = new SignInWindow(); signInWindow.Closed += SignInWindow_Closed; }