Inheritance: ISearchNodeCriteria
Exemplo n.º 1
0
        private void buttonAddDomain_Click(object sender, EventArgs e)
        {
            IMainForm mainForm = Instances.MainForm;

              // Jump to the domains node.
              SearchNodeType crit = new SearchNodeType(typeof(NodeDomains));
              mainForm.SelectNode(crit);

              // Show the new domain.
              NodeDomain domain = new NodeDomain(mainForm, 0, null);
              mainForm.ShowItem(domain);
        }
Exemplo n.º 2
0
        private void CreateMainNodes()
        {
            treeNodes.Nodes.Clear();

            AddNode(null, new NodeWelcome(), 1);
            AddNode(null, new NodeStatus(), 1);
            AddNode(null, new NodeDomains(this), 1);
            AddNode(null, new NodeGlobalRules(), 1);
            AddNode(null, new NodeSettings(), 1);
            AddNode(null, new NodeUtilities(), 1);

            SearchNodeType crit = new SearchNodeType(typeof(NodeWelcome));
            SelectNode(crit);
        }