public void Reset() { State = new DrawingState(); Polygons = new List <Polygon> { new Polygon() }; State.CurrentPolygon = Polygons[Polygons.Count - 1]; RepaintBitmap(); pictureBox.Refresh(); }
public WorkingArea(Bitmap bitmap, PictureBox pictureBox) { Bitmap = bitmap; State = new DrawingState(); Polygons = new List <Polygon> { new Polygon() }; State.CurrentPolygon = Polygons[Polygons.Count - 1]; this.pictureBox = pictureBox; pictureBox.Image = bitmap; }