Beispiel #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);
        }
Beispiel #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);
        }
        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);
        }