示例#1
0
        private void AddTextEditor(string query)
        {
            var node = _contextMenuNode as TreeNodeWithConnectionInfo;

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

            if (provider != null && provider.ConnectionInfo.CanCreateSubscription)
            {
                TabsFactory.OpenActivityMonitor(provider.ConnectionInfo);
            }
        }
示例#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);
        }
示例#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;
 }
示例#6
0
        private void Crud(Entity entity, CrudOperation operation)
        {
            var provider = FindProvider(_contextMenuNode);

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