private void SetTreeViewColours() { RulesTreeView.BeginUpdate(); foreach (TreeNode node in RulesTreeView.Nodes) { SetColours(node); } RulesTreeView.EndUpdate(); }
private void Collapsed(bool collapsed) { RulesTreeView.BeginUpdate(); foreach (TreeNode node in RulesTreeView.Nodes) { if (collapsed) { node.Collapse(); } else { node.ExpandAll(); } } RulesTreeView.EndUpdate(); }