internal static bool Need(DragAndDropPoint p, MouseEventArgs e) { int dx = p.X - e.X; int dy = p.Y - e.Y; return(Math.Abs(dx) * Math.Abs(dx) + Math.Abs(dy) * Math.Abs(dy) < 100); }
internal static bool Need(DragAndDropPoint p, MouseEventArgs e) { int dx = p.X - e.X; int dy = p.Y - e.Y; return Math.Abs(dx)*Math.Abs(dx) + Math.Abs(dy)*Math.Abs(dy) < 100; }
public IDragAndDropPoint DragDropPoint(int x, int y) { var newIns = new DragAndDropPoint() { X = x, Y = y }; dragAndDropPoints.Add(newIns); return(newIns); }
public IDragAndDropPoint DragDropPoint(int x, int y) { var newIns = new DragAndDropPoint() {X = x, Y = y}; dragAndDropPoints.Add(newIns); return newIns; }