Exemple #1
0
        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;
        }
Exemple #2
0
 public void Logout()
 {
     _preferencesService.Clear();
 }