コード例 #1
0
 private void ComputeIntersection()
 {
     currentIntersection = allButtons.Where(b => IntersectsMoreThanHalf(b.Frame)).FirstOrDefault();
 }
コード例 #2
0
 public void DragDelta(double horizontalChange, double verticalChange)
 {
     currentIntersection = null;
     currentRectangle.X += horizontalChange;
     currentRectangle.Y += verticalChange;
 }