Example #1
0
 private void Drawing(ArrayPoints points, Graphics graphics, PictureBox canvas,
                      Bitmap map, MouseEventArgs e)
 {
     if (!isMousePressed)
     {
         return;
     }
     points.SetPoint(e.X, e.Y);
     if (points.GetCountOfPoints() >= 2)
     {
         graphics.DrawLines(pen, points.GetPoints());
         canvas.Image = map;
         points.SetPoint(e.X, e.Y);
     }
 }