예제 #1
0
 internal QueryTab(IApplicationService applicationService, ServerList serverList, ConnectionInfo connectionInfo, SubscriptionManager subscriptionManager) : this()
 {
     ApplicationService  = applicationService;
     ServerList          = serverList;
     ConnectionInfo      = connectionInfo;
     SubscriptionManager = subscriptionManager;
 }
예제 #2
0
 internal TabsFactory(QueriesDockPanel dockPanel, IApplicationService applicationService,
                      ServerList serverList, ConnectionsManager connectionsManager)
 {
     this.dockPanel          = dockPanel;
     this.applicationService = applicationService;
     this.serverList         = serverList;
     this.connectionsManager = connectionsManager;
 }
예제 #3
0
        private void SetMetadataProvider()
        {
            IMetadataProvider provider;

            if (ServerList != null && ConnectionInfo != null && ServerList.TryGetProvider(ConnectionInfo, out provider))
            {
                sciTextEditorControl1.SetMetadata(provider);
            }
        }
예제 #4
0
        private void InitializeDockPanel()
        {
            this.serverList = new ServerList();
            this.serverList.ConnectionAdded   += ServerListOnConnectionAdded;
            this.serverList.ConnectionRemoved += ServerListOnConnectionRemoved;
            this.connectionsManager            = new ConnectionsManager(this, this.serverList);
            var tabsFactory = new TabsFactory(this.filesDock, this, this.serverList, this.connectionsManager);

            this.filesDock.SetAplicationService(tabsFactory);
            this.filesDock.ActiveContentChanged += FilesDock_ActiveContentChanged;
        }
예제 #5
0
 public ConnectionsManager(IApplicationService applicationService, ServerList serverList)
 {
     this.applicationService = applicationService;
     this.serverList         = serverList;
 }