示例#1
0
        private void pBox_MouseMove(object sender, MouseEventArgs e)
        {
            Point pt = ScreenToPoint(e.Location);

            if ((curEt != null) && moving)
            {
                curEt.Move(pt);
                PaintImage();
            }
        }
示例#2
0
        private void DrawPanel_MouseMove(object sender, MouseEventArgs e)
        {
            Point pt = ScreenToPoint(e.Location);

            if ((curEt != null) && moving)
            {
                curEt.Move(pt);
                Refresh();
            }
        }