Пример #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 Crud(Entity entity, CrudOperation operation)
        {
            var provider = FindProvider(_contextMenuNode);

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