public TopologyDragControlMode(Controller controller, EventDB eventDB, SelectionMgr selectionMgr, CourseObj courseObject, PointF startDrag, PointF currentLocation) { this.controller = controller; this.eventDB = eventDB; this.selectionMgr = selectionMgr; this.courseObjectStart = courseObject; this.courseObjectDrag = (CourseObj)(courseObject.Clone()); this.startDrag = startDrag; this.currentLocation = currentLocation; this.dropTargetHighlight = null; }
public DragObjectMode(Controller controller, EventDB eventDB, SelectionMgr selectionMgr, CourseObj courseObject, PointF startDrag) { this.controller = controller; this.eventDB = eventDB; this.selectionMgr = selectionMgr; this.courseObjectStart = courseObject; this.courseObjectDrag = (CourseObj) (courseObject.Clone()); this.startDrag = this.currentLocation = startDrag; }
public DragHandleMode(Controller controller, CourseObj courseObject, PointF handleLocation, PointF startDrag) { this.controller = controller; this.courseObjectStart = courseObject; this.courseObjectDrag = (CourseObj) (courseObject.Clone()); this.handleLocation = handleLocation; this.handleCursor = courseObject.GetHandleCursor(handleLocation); this.startDrag = this.currentLocation = startDrag; }