void LogoutOccurred(object sender, LoginEventArgs e) { // Disconnect Tunnels //DisconnectTunnels(); }
private void OnLoggingOut() { if (_appContext.IsShuttingDown) return; LoginEventArgs e = new LoginEventArgs { LoginState = LoginState.LoggingOut }; LoginEvent handler = LoggingOut; if (handler != null) handler(this, e); }
/// <summary> /// Event called when we are logged out /// </summary> /// <param name="sender"></param> /// <param name="loginEventArgs"></param> private void LoginManagerOnLoggedOut(object sender, LoginEventArgs loginEventArgs) { Reset(); }
private void LoginManagerOnLoggingIn(object sender, LoginEventArgs loginEventArgs) { if (GwupeClientAppContext.CurrentAppContext.IsShuttingDown) return; if (loginEventArgs.LoginState == LoginState.LoggingIn) dashBoard.LoggingIn(); }