Beispiel #1
0
        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);
        }
Beispiel #2
0
        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;
        }
Beispiel #3
0
        public IDragAndDropPoint DragDropPoint(int x, int y)
        {
            var newIns = new DragAndDropPoint()
            {
                X = x, Y = y
            };

            dragAndDropPoints.Add(newIns);
            return(newIns);
        }
Beispiel #4
0
 public IDragAndDropPoint DragDropPoint(int x, int y)
 {
     var newIns = new DragAndDropPoint() {X = x, Y = y};
     dragAndDropPoints.Add(newIns);
     return newIns;
 }