private void stListView1_Collapsing(object sender, TreeBranchCollapsingEventArgs e) { if (e.Model is ObjectTreeNode) { ((ObjectTreeNode)e.Model).OnAfterCollapse(); } }
private void tlvPluginsList_Collapsing(object sender, TreeBranchCollapsingEventArgs e) { if (ModifierKeys == Keys.Control) { if (TlvControl.CanExpand(e)) { RecursiveExpand(TlvControl.GetChildren(e)); } } }