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 Crud(Entity entity, CrudOperation operation) { var provider = FindProvider(_contextMenuNode); TabsFactory.OpenCrudTab(operation, provider.ConnectionInfo, entity); }