/// <summary>
/// Метод перестраивающий конечную точку нашего курсора по его перетаскиванию...
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
public void MouseMove(object sender, System.Windows.Forms.MouseEventArgs e)
{
Point p1;
Point p2;
if (((e.Button & System.Windows.Forms.MouseButtons.Left) != 0) && (start != Point.Empty))
{
using (Graphics g = view.CreateGraphics())
{
p1 = ((System.Windows.Forms.Control)changedImage).PointToScreen(start);
if (end != Point.Empty)
{
p2 = ((System.Windows.Forms.Control)changedImage).PointToScreen(end);
System.Windows.Forms.ControlPaint.DrawReversibleFrame(getRectangleForPoints(p1, p2), Color.Black, System.Windows.Forms.FrameStyle.Dashed);
}
end.X = e.X;
end.Y = e.Y;
p2 = ((System.Windows.Forms.Control)changedImage).PointToScreen(end);
System.Windows.Forms.ControlPaint.DrawReversibleFrame(getRectangleForPoints(p1, p2), Color.Black, System.Windows.Forms.FrameStyle.Dashed);
}
}
}