コード例 #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
ファイル: SqlPersistence.cs プロジェクト: ZakFong/Terminals
        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
ファイル: GroupsLogic.cs プロジェクト: gbachs/Terminals
 public void AssignStores(DataDispatcher dispatcher, Favorites favorites)
 {
     this.dispatcher = dispatcher;
     this.favorites  = favorites;
 }
コード例 #4
0
ファイル: GroupLogic.cs プロジェクト: zivalin/Terminals
 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;
 }