Пример #1
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);
        }
Пример #2
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);
        }
Пример #3
0
 public void AssignStores(DataDispatcher dispatcher, Favorites favorites)
 {
     this.dispatcher = dispatcher;
     this.favorites  = favorites;
 }
Пример #4
0
 internal void AssignStores(Groups groups, DataDispatcher dispatcher, Favorites favorites)
 {
     this.groups     = groups;
     this.dispatcher = dispatcher;
     this.favorites  = favorites;
 }
Пример #5
0
 internal ConnectionHistory(Favorites favorites, DataDispatcher dispatcher)
 {
     this.favorites  = favorites;
     this.dispatcher = dispatcher;
 }