protected virtual void OnAfterSelect(VirtualTreeViewEventArgs e) { EventHandler <VirtualTreeViewEventArgs> handler = AfterSelect; if (handler != null) { handler(this, e); } }
protected virtual void OnBeforeDeselect(VirtualTreeViewEventArgs e) { EventHandler <VirtualTreeViewEventArgs> handler = BeforeDeselect; if (handler != null) { handler(this, e); } }
protected override void OnAfterExpand(VirtualTreeViewEventArgs e) { base.OnAfterExpand(e); if (_persistedTopNode != null) { int hPos = HScrollPos; TopNode = ClosestMatch(_persistedTopNode); HScrollPos = hPos; } }
private void treeView_AfterSelect(object sender, VirtualTreeViewEventArgs e) { SetOKButtonEnablement(); }
protected virtual void OnAfterSelect(VirtualTreeViewEventArgs e) { EventHandler<VirtualTreeViewEventArgs> handler = AfterSelect; if (handler != null) { handler(this, e); } }
protected virtual void OnBeforeDeselect(VirtualTreeViewEventArgs e) { EventHandler<VirtualTreeViewEventArgs> handler = BeforeDeselect; if (handler != null) { handler(this, e); } }
private void treeView_AfterCheck(object sender, VirtualTreeViewEventArgs e) { var volume = (StorageLinkVolume)e.Node.Tag; if (!e.Node.Checked) { listView.Items.RemoveByKey(volume.opaque_ref); } else { listView.ItemChecked -= listView_ItemChecked; listView.Items.Add(CreateListViewItem(volume)); listView.ItemChecked += listView_ItemChecked; } }