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