public LoginViewModel( IAuthenticationManager authenticationManager, IProfilesManager profilesManager, IPreferencesService preferencesService) { _authenticationManager = authenticationManager; _profilesManager = profilesManager; _preferencesService = preferencesService; preferencesService.Clear(); LoginCommand = new RelayCommand(Login); NavigateToSignUpCommand = new RelayCommand(NavigateToSignUp); string defaultUsername = CustomNavigationService.CurrentPageParams?.ToString() ?? ""; Username = defaultUsername; IsBusy = false; }
public void Logout() { _preferencesService.Clear(); }