private void OnLoggingOut(object sender, EventArgs e) { DisplayStatus = WindowDisplayStatus.OnLoginScreen; App.Current.ClearSessionID(); MainScreenWindow.ForceClose(); _mainScreenWindow = null; }
private void ShowMainWindow(object sender, EventArgs e) { if (App.Current.IsOnline) { DisplayStatus = WindowDisplayStatus.OnMainScreen; } else { DisplayStatus = WindowDisplayStatus.OnLoginScreen; } }
private void ExitApplication(object sender, EventArgs e) { DisplayStatus = WindowDisplayStatus.AppExit; App.Current.ClearSessionID(); }