public NodeController(NlmTreeListView listView) { MaxEvents = new MaxEventEngine(listView, this); HandleMap = new HandleMap(); Query = new NodeQueryEngine(listView); Create = new NodeCreateEngine(listView, HandleMap); Destroy = new NodeDeleteEngine(listView, Query, HandleMap); CollapseExpand = new NodeCollapseExpandEngine(listView, Query); Parent = new NodeParentEngine(listView); DragDrop = new NodeDragDropEngine(listView, Parent, MaxEvents); }
public NodeDragDropEngine(NlmTreeListView listView, NodeParentEngine nodeParentEngine, MaxEventEngine maxEvents) { ListView = listView; NodeParentEngine = nodeParentEngine; MaxEvents = maxEvents; // Add Events. ListView.ModelCanDrop += new EventHandler <ModelDropEventArgs>(CanDrop); ListView.ModelDropped += new EventHandler <ModelDropEventArgs>(Dropped); }