Beispiel #1
0
 internal void UpdateFrom(DbSecurityOptions source)
 {
     this.EncryptedUserName = source.EncryptedUserName;
     this.EncryptedDomain   = source.EncryptedDomain;
     this.EncryptedPassword = source.EncryptedPassword;
     this.credentialId      = source.credentialId;
     this.storedCredentials = source.storedCredentials;
 }
Beispiel #2
0
 internal Favorites(SqlPersistence persistence, Groups groups, StoredCredentials credentials,
                    ConnectionManager connectionManager, FavoriteIcons favoriteIcons)
 {
     this.groups            = groups;
     this.credentials       = credentials;
     this.dispatcher        = persistence.Dispatcher;
     this.connectionManager = connectionManager;
     this.favoriteIcons     = new DbFavoriteImagesStore(this.dispatcher, favoriteIcons);
     this.batchActions      = new FavoritesBatchActions(this, this.cache, persistence);
 }
Beispiel #3
0
 internal Factory(Groups groups, Favorites favorites,
                  StoredCredentials credentials, DataDispatcher dispatcher,
                  ConnectionManager connectionManager)
 {
     this.groups            = groups;
     this.favorites         = favorites;
     this.credentials       = credentials;
     this.dispatcher        = dispatcher;
     this.connectionManager = connectionManager;
 }
Beispiel #4
0
        /// <summary>
        /// Does not set the protocol options.
        /// </summary>
        internal static DbFavorite CreateFavorite(Groups groups, StoredCredentials credentials, DataDispatcher dispatcher)
        {
            var favorite = new DbFavorite();

            favorite.Display              = new DbDisplayOptions();
            favorite.Security             = new DbSecurityOptions();
            favorite.ExecuteBeforeConnect = new DbBeforeConnectExecute();
            favorite.AssignStores(groups, credentials, dispatcher);
            favorite.MarkAsNewlyCreated();
            return(favorite);
        }
Beispiel #5
0
        public bool Initialize()
        {
            if (!this.TryInitializeDatabase())
            {
                return(false);
            }

            this.groups      = new Groups();
            this.credentials = new StoredCredentials(this.Dispatcher);
            this.favorites   = new Favorites(this, this.groups, this.credentials, this.connectionManager, this.favoriteIcons);
            this.groups.AssignStores(this.Dispatcher, this.favorites);
            this.connectionHistory = new ConnectionHistory(this.favorites, this.Dispatcher);
            this.Factory           = new Factory(this.groups, this.favorites, this.credentials, this.Dispatcher, this.connectionManager);
            return(true);
        }
Beispiel #6
0
        public void Initialize()
        {
            if (!this.TryInitializeDatabase())
            {
                return;
            }

            this.Dispatcher  = new DataDispatcher();
            this.groups      = new Groups();
            this.credentials = new StoredCredentials(this.security);
            this.favorites   = new Favorites(this.groups, this.credentials, this.security, this.Dispatcher);
            this.groups.AssignStores(this.Dispatcher, this.favorites);
            this.connectionHistory = new ConnectionHistory(this.favorites);
            this.Factory           = new Factory(this.groups, this.favorites, this.credentials, this.security, this.Dispatcher);
        }
Beispiel #7
0
 internal void AssignStores(Groups groups, StoredCredentials credentials, DataDispatcher dispatcher)
 {
     this.groups             = groups;
     this.credentials        = credentials;
     this.Details.Dispatcher = dispatcher;
 }
 internal void UpdateFrom(DbSecurityOptions source)
 {
     this.EncryptedUserName = source.EncryptedUserName;
     this.EncryptedDomain = source.EncryptedDomain;
     this.EncryptedPassword = source.EncryptedPassword;
     this.credentialId = source.credentialId;
     this.storedCredentials = source.storedCredentials;
     this.persistenceSecurity = source.persistenceSecurity;
 }
 internal void AssignStores(StoredCredentials storedCredentials, PersistenceSecurity persistenceSecurity)
 {
     this.storedCredentials = storedCredentials;
     this.persistenceSecurity = persistenceSecurity;
 }
Beispiel #10
0
 internal void AssignStores(StoredCredentials storedCredentials)
 {
     this.storedCredentials = storedCredentials;
 }
        public void Initialize()
        {
            if(!this.TryInitializeDatabase())
                return;

            this.groups = new Groups();
            this.credentials = new StoredCredentials(this.security, this.Dispatcher);
            this.favorites = new Favorites(this.groups, this.credentials, this.security, this.Dispatcher);
            this.groups.AssignStores(this.Dispatcher, this.favorites);
            this.connectionHistory = new ConnectionHistory(this.favorites, this.Dispatcher);
            this.Factory = new Factory(this.groups, this.favorites, this.credentials, this.security, this.Dispatcher);
        }