示例#1
0
 private void ReleaseGrip(int index)
 {
     if (handGrips[index])
     {
         MouseControl.PressUp();
         handGrips[index] = false;
     }
 }
 private void ReleaseGrip(int index)
 {
     if (!NeedGrabbing)
     {
         MouseControl.PressUp(); // Here for ability to click on maximise/minimise but not drag
     }
     if (handGrips[index])
     {
         if (NeedGrabbing)
         {
             MouseControl.PressUp();               // Here for dragging but no max/min
         }
         handGrips[index] = false;
     }
 }