private void pBox_MouseMove(object sender, MouseEventArgs e) { Point pt = ScreenToPoint(e.Location); if ((curEt != null) && moving) { curEt.Move(pt); PaintImage(); } }
private void DrawPanel_MouseMove(object sender, MouseEventArgs e) { Point pt = ScreenToPoint(e.Location); if ((curEt != null) && moving) { curEt.Move(pt); Refresh(); } }