public PasswordManagerViewModel( IFileSelectionService fileSelectionService, IDialogService dialogService, IPasswordExchange passwordExchange, IStorageConfiguration storageConfiguration, Settings settings, PasswordListViewModel passwordList ) { _passwordList = passwordList; _passwordExchange = passwordExchange; _storageConfiguration = storageConfiguration; _settings = settings; _fileSelectionService = fileSelectionService; _dialogService = dialogService; _selectInternalStorageCommand = new RelayCommand( ExecuteSelectInternalStorage ); _selectExternalStorageCommand = new RelayCommand( ExecuteSelectExternalStorage ); _toggleAlwaysShowLegacyPasswordTypes = new RelayCommand( ExecuteToggleAlwaysShowLegacyPasswordTypes ); _quitCommand = new RelayCommand( ExecuteQuit ); _importPasswordsCommand = new RelayCommand( ExecuteImportPasswords ); _exportPasswordsCommand = new RelayCommand( ExecuteExportPasswords ); Update( ); }
public DerivedPasswordViewModel( IDerivedPasswordModel model, IPasswordEditorModel parentModel, Settings settings ) { _model = model; _parentModel = parentModel; _settings = settings; }
public SettingsTextResource( Settings settings ) { _settings = settings; }
internal void Apply( Settings settings ) { settings.PasswordsAreExternal = PasswordsAreExternal; settings.ExternalPasswordDatabaseFile = ExternalPasswordDatabaseFile; settings.SavedPasswordData = SavedPasswordData; settings.Save( ); }
public StorageConfiguration( Settings settings, IPasswordManagerStorage storage ) { _settings = settings; _storage = storage; ApplyStorageTypeSetting( ); }
internal static SettingsData CopyOf( Settings settings ) { return new SettingsData { PasswordsAreExternal = settings.PasswordsAreExternal, ExternalPasswordDatabaseFile = settings.ExternalPasswordDatabaseFile, SavedPasswordData = settings.SavedPasswordData }; }
public void SetUpStorageConfiguration( ) { _storage = PasswordManagerStorage.CreateService( new InMemoryPasswordData( ) ); _settings = new Settings( ); }