Пример #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();
            }
        }