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

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