private void RefreshVisualState(bool isLoggedIn, bool isLoggingIn, bool isInErrorState) { if (isInErrorState) { GoToErrorVisualState(); } else if (isLoggedIn) { GoToLoggedInVisualState(); ResetZoom.Begin(); } else if (isLoggingIn) { GoToPromptingLoginVisualState(); } else { GoToDefaultVisualState(); } }
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(); } }