private void AddTextEditor(string query) { var node = _contextMenuNode as TreeNodeWithConnectionInfo; if (node != null) { TabsFactory.OpenQueryTab(query, node.Connection); } }
private void OpenActivityMonitor(TreeNode node) { var provider = node.Tag as IMetadataProvider; if (provider != null && provider.ConnectionInfo.CanCreateSubscription) { TabsFactory.OpenActivityMonitor(provider.ConnectionInfo); } }
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); }
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; }
private void Crud(Entity entity, CrudOperation operation) { var provider = FindProvider(_contextMenuNode); TabsFactory.OpenCrudTab(operation, provider.ConnectionInfo, entity); }