private void OnLoggingOut(object sender, EventArgs e) { DisplayStatus = WindowDisplayStatus.OnLoginScreen; App.Current.ClearSessionID(); MainScreenWindow.ForceClose(); _mainScreenWindow = null; }
private void ExitApplication() { if (!_isLoginWindowExited) { _isLoginWindowExited = true; LoginScreenWindow?.ForceClose(); } if (!_isMainWindowExited) { _isMainWindowExited = true; MainScreenWindow?.ForceClose(); } if (_notityIconEnable) { _notifyIcon?.Dispose(); _notifyIcon = null; } DbManager.Instance.Dispose(); }