예제 #1
0
 public void Reset()
 {
     LeftMouseIsDown = RightMouseIsDown = DragDropInProgress = false;
     Cursor          = CurrentPath = null;
     Source          = new DragLocation();
     Destination     = new DragLocation();
 }
예제 #2
0
파일: Shape.cs 프로젝트: physalis/MeeGen
 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;
     }
 }