private void ConditionTree_BeforeCollapse(object sender, TreeViewCancelEventArgs e) { e.Cancel = true; }