Пример #1
0
        private void AllConditions_NodeClick(object sender, TreeNodeMouseEventArgs e)
        {
            Node node = e.Node;

            if (node.Tag is AbstractCondition)
            {
                AllConditions.BeginUpdate();
                selected = (AbstractCondition)node.Tag;
                ConditionEditor.Nodes.Clear();
                foreach (Node conNode in selected.GetNodes())
                {
                    ConditionEditor.Nodes.Add(conNode);
                }
                AllConditions.EndUpdate();
            }
        }
Пример #2
0
 private void AddNode(Node node)
 {
     AllConditions.BeginUpdate();
     AllConditions.Nodes.Add(node);
     AllConditions.EndUpdate();
 }