private void RefreshProfiles()
        {
            var profiles = _getAllProfilesHandler.Execute(new GetAllProfilesQuery()).Profiles;

            Profiles       = new ObservableCollection <ProfileListItemEntity>(profiles);
            _profilesCache = new List <ProfileListItemEntity>(profiles);
        }
Example #2
0
 private void PasswordBoxKeyDownCommandExecute()
 {
     if (_authenticateHandler.Execute(new AuthenticateMasterPasswordQuery(Password)))
     {
         AppSettings.MasterPassword = Password;
         _navigation.Navigate(typeof(NavigationMenuViewModel));
     }
 }
Example #3
0
 public void LoadDetails(int profileId)
 {
     try {
         ProfileDetail = _getProfileDetailHandler.Execute(new GetProfileDetailQuery {
             ProfileId = profileId, PublicKey = AppSettings.MasterPassword
         });
         AccountDetail  = _profileDetail.Account;
         PasswordDetail = _profileDetail.Password;
         ShowDetails    = _profileDetail != null;
     }
     catch (Exception ex) {
         //Log.Error(ex.Message, ex);
     }
 }