Esempio n. 1
0
        private void AddTextEditor(string query)
        {
            var node = _contextMenuNode as TreeNodeWithConnectionInfo;

            if (node != null)
            {
                TabsFactory.OpenQueryTab(query, node.Connection);
            }
        }
Esempio n. 2
0
        private void OpenActivityMonitor(TreeNode node)
        {
            var provider = node.Tag as IMetadataProvider;

            if (provider != null && provider.ConnectionInfo.CanCreateSubscription)
            {
                TabsFactory.OpenActivityMonitor(provider.ConnectionInfo);
            }
        }
Esempio n. 3
0
        private void OpenInvokeTab()
        {
            var provider = FindProvider(_contextMenuNode);
            var verb     = (Verb)_contextMenuNode.Tag;

            if (verb.Arguments.Count == 0)
            {
                verb.Arguments.AddRange(provider.GetVerbArguments(verb));
            }
            TabsFactory.OpenInvokeTab(provider.ConnectionInfo, verb);
        }
Esempio n. 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;
        }
 internal void SetAplicationService(TabsFactory tabsFactory)
 {
     this.tabsFactory           = tabsFactory;
     objectExplorer.TabsFactory = tabsFactory;
 }
Esempio n. 6
0
        private void Crud(Entity entity, CrudOperation operation)
        {
            var provider = FindProvider(_contextMenuNode);

            TabsFactory.OpenCrudTab(operation, provider.ConnectionInfo, entity);
        }