예제 #1
0
        public void PerformDoubleClick(object sender, MouseEventArgs e)
        {
            PokeControl control = GetControlAt(new Point(e.X, e.Y));

            if (control != null)
            {
                control.DoubleClick(e);
            }
        }
예제 #2
0
        public void PerformMouseMove(object sender, MouseEventArgs e)
        {
            PokeControl before = GetControlAt(new Point(mx, my));
            PokeControl now    = GetControlAt(new Point(e.X, e.Y));

            if (before == null && now != null)
            {
                now.MouseEnter(e);
            }
            else
            {
                if (now != before && before != null)
                {
                    before.MouseLeave(e);
                }
            }

            mx = e.X;
            my = e.Y;
        }