Esempio n. 1
0
 public void Reset()
 {
     LeftMouseIsDown = RightMouseIsDown = DragDropInProgress = false;
     Cursor          = CurrentPath = null;
     Source          = new DragLocation();
     Destination     = new DragLocation();
 }
Esempio n. 2
0
 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;
     }
 }