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(); } }
private void AddNode(Node node) { AllConditions.BeginUpdate(); AllConditions.Nodes.Add(node); AllConditions.EndUpdate(); }