public void MouseMove(PictureBox sheet, IBrush brush, IFill fill, MouseEventArgs e)
 {
     if (cursorActive)
     {
         if (activeFigure != null)
         {
             canvas.LoadFromCache();
             activeFigure.figure.dotlist[tmpIndex] = e.Location;
             activeFigure.Draw(canvas);
             canvas.PointChangeModeActiveFigure(sheet, activeFigure);
             canvas.WriteToPictureBox(sheet);
         }
     }
 }
 public void MouseMove(PictureBox sheet, IBrush brush, IFill fill, MouseEventArgs e)
 {
     if (cursorActive)
     {
         canvas.LoadFromCache();
         canvas.Turn(activeFigure);
         activeFigure.Draw(canvas);
         canvas.WriteToPictureBox(sheet);
     }
 }
 public void MouseMove(PictureBox sheet, IBrush brush, IFill fill, MouseEventArgs e)
 {
     if (cursorActive)
     {
         canvas.LoadFromCache();
         dx = e.X - tmpPoint.X;
         dy = e.Y - tmpPoint.Y;
         activeFigure.figure.MoveFigure(dx, dy);
         tmpPoint = e.Location;
         activeFigure.Draw(canvas);
         canvas.WriteToPictureBox(sheet);
     }
 }
Example #4
0
        public void MouseMove(PictureBox sheet, IBrush brush, IFill fill, MouseEventArgs e)
        {
            if (cursorActive)
            {
                if (activeFigure != null)
                {
                    canvas.LoadFromCache();
                    dx = e.X - tmpPoint.X;
                    dy = e.Y - tmpPoint.Y;
                    activeFigure.figure.ChangeSizeFigure(dx, dy, activecorner);

                    tmpPoint = e.Location;
                    activeFigure.Draw(canvas);
                    canvas.PointChangeModeOfRectangle(sheet, activeFigure);
                    canvas.WriteToPictureBox(sheet);
                }
            }
        }