Esempio n. 1
0
 public TreeViewHandler(TreeView currentTreeView, ContextMenuStrip currentTreeMenu)
 {
     CurrentForm = currentTreeView.FindForm();
     CurrentTreeView = currentTreeView;
     CurrentTreeMenu = currentTreeMenu;
     NavigationHistory = new NavigationHistory(this);
 }
 public TreeViewDragNDropHelper(TreeView treeView)
 {
     this.tree = treeView;
     tree.AllowDrop = true;
     tree.ItemDrag += new ItemDragEventHandler(tree_ItemDrag);
     tree.DragEnter += new DragEventHandler(tree_DragEnter);
     tree.DragDrop += new DragEventHandler(tree_DragDrop);
     tree.DragOver += new DragEventHandler(tree_DragOver);
     form = tree.FindForm();
 }