Beispiel #1
0
        private static FilePersistence CreateFilePersistence(IDataFileWatcher fileWatcher, ConnectionManager connectionManager)
        {
            FilePersistence persistence = CreateNotInitializedFilePersistence(fileWatcher, connectionManager);

            persistence.Initialize();
            return(persistence);
        }
Beispiel #2
0
        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);
 }