예제 #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;
 }
예제 #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);
 }
예제 #3
0
파일: Factory.cs 프로젝트: gbachs/Terminals
 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;
 }
예제 #4
0
파일: Factory.cs 프로젝트: zoroz/Terminals
        /// <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);
        }
예제 #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);
        }
예제 #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);
        }
예제 #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;
 }
예제 #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);
        }