private static FilePersistence CreateFilePersistence(IDataFileWatcher fileWatcher, ConnectionManager connectionManager) { FilePersistence persistence = CreateNotInitializedFilePersistence(fileWatcher, connectionManager); persistence.Initialize(); return(persistence); }
public void UpdatePasswordsByNewMasterPassword(string newMasterKey) { // nothing to do in database, the application master password doesn't affect the database // but, the file persisted passwords may be lost, so we have to update them. var newSecurity = new PersistenceSecurity(this.security); var filePersistence = new FilePersistence(newSecurity, this.favoriteIcons, this.connectionManager); filePersistence.Initialize(); filePersistence.UpdatePasswordsByNewMasterPassword(newMasterKey); }
public void UpdatePasswordsByNewMasterPassword(string newMasterKey) { // nothing to do in database, the application master password doesn't affect the database // but, the file persisted passwords may be lost, so we have to update them var newSecurity = new PersistenceSecurity(this.security); var filePersistence = new FilePersistence(newSecurity); filePersistence.Initialize(); filePersistence.UpdatePasswordsByNewMasterPassword(newMasterKey); }