private void pbTheImage_MouseDown(object sender, MouseEventArgs e) { PointD ptRealPosition = ((PictureBox)sender).GetMouseEventPositionOnRealImage(e, origImage); ThreadSafeOperations.SetText(lblTitle, ptRealPosition.ToString() + " down " + currMouseActionRegime, false); ptMouseDown = ptRealPosition; switch (ptRealPosition.IsPointInsideCircle(sunDiskPositionAndSize, 10.0d)) { case -1: currMouseActionRegime = MouseActionsRegime.DrawingSunDisk; break; case 0: currMouseActionRegime = MouseActionsRegime.ResizingSunDisk; sunDiskPositionAndSizeBeforeMovingResizing = sunDiskPositionAndSize.Copy(); break; case 1: currMouseActionRegime = MouseActionsRegime.MovingSunDisk; sunDiskPositionAndSizeBeforeMovingResizing = sunDiskPositionAndSize.Copy(); break; default: break; } }