public FacadeNodeMotionHandler(NodeControl userControl) { _parent = userControl.ParentSurface; _parent.MapMoved += OnMapMoved; UserControl = userControl; MouseManagingControl = userControl.NodeImage; _selector = _parent.NodesSelector; }
public void Initialise(ISelectorControl parent) { SelectorControl = parent; MultiNodesContextMenu.CopyClicked += OnCopyClicked; MultiNodesContextMenu.CutClicked += OnCutClicked; MultiNodesContextMenu.DeleteClicked += OnDeleteClicked; MultiNodesContextMenu.CloneClicked += OnCloneClicked; MultiNodesContextMenu.NodePropertiesClicked += OnNodePropertiesClicked; MultiNodesContextMenu.ExportClicked += MultiNodesContextMenuOnExportClicked; MultiNodesContextMenu.ChangeNodeTypeClicked += MultiNodesContextMenuOnChangeNodeTypeClicked; SelectorControl.MapMoved += OnMapMoved; }