Exemple #1
0
 void OnLoginButtonClick()
 {
     if (m_LoginStateSelector.GetValue() == LoginState.LoggedOut)
     {
         Dispatcher.Dispatch(SetStatusMessage.From("Logging in..."));
         Dispatcher.Dispatch(SetLoginAction.From(LoginState.LoggingIn));
         Dispatcher.Dispatch(SetDeltaDNAButtonAction.From($"Logging"));
     }
 }
 void OnLoginButtonClicked()
 {
     switch (m_LoggedStateSelector.GetValue())
     {
     case LoginState.LoggingIn:
     case LoginState.LoggedOut:
         Dispatcher.Dispatch(SetStatusMessage.From("Logging in..."));
         Dispatcher.Dispatch(SetLoginAction.From(LoginState.LoggingIn));
         break;
     }
 }
Exemple #3
0
        void OnLogoutButtonClick()
        {
            if (m_LoginStateSelector.GetValue() == LoginState.LoggedIn)
            {
                Dispatcher.Dispatch(SetStatusMessage.From("Logging out..."));
                Dispatcher.Dispatch(CloseAllDialogsAction.From(null));
                Dispatcher.Dispatch(SetWalkEnableAction.From(false));
                Dispatcher.Dispatch(SetLoginAction.From(LoginState.LoggingOut));

                Dispatcher.Dispatch(SetDeltaDNAButtonAction.From($"Logout"));
            }
        }