public void Reset() { LeftMouseIsDown = RightMouseIsDown = DragDropInProgress = false; Cursor = CurrentPath = null; Source = new DragLocation(); Destination = new DragLocation(); }
public void Drag(DragLocation dl, int dx, int dy) { switch(dl) { case DragLocation.None: break; case DragLocation.Inside: this.MoveDrag(dx, dy); break; case DragLocation.Resize: this.ScaleWidth(dx - this.offset.X); this.ScaleHeight(dy - this.offset.Y); this.offset = new Point(dx, dy); break; default: break; } }