Пример #1
0
 private void RefreshVisualState(bool isLoggedIn, bool isLoggingIn, bool isInErrorState)
 {
     if (isInErrorState)
     {
         GoToErrorVisualState();
     }
     else if (isLoggedIn)
     {
         GoToLoggedInVisualState();
         ResetZoom.Begin();
     }
     else if (isLoggingIn)
     {
         GoToPromptingLoginVisualState();
     }
     else
     {
         GoToDefaultVisualState();
     }
 }
Пример #2
0
 private void RefreshVisualState(NestViewModelState state)
 {
     if (state == NestViewModelState.Error)
     {
         GoToErrorVisualState();
     }
     else if (state == NestViewModelState.LoggedIn)
     {
         GoToLoggedInVisualState();
         ResetZoom.Begin();
     }
     else if (state == NestViewModelState.LoggingIn)
     {
         GoToPromptingLoginVisualState();
     }
     else
     {
         GoToDefaultVisualState();
     }
 }