public void MouseUp(PictureBox sheet, IBrush brushFig, IFill fillFig, MouseEventArgs e) { activeFigure.brush = (IBrush)brushFig.Clone(); activeFigure.fill = (IFill)fillFig.Clone(); cursorActive = false; canvas.Render(); canvas.WriteToPictureBox(sheet); }
public Drawfigure(IFigure figure, IBrush brush, IFill fill) { this.figure = (IFigure)figure.Clone(); this.brush = (IBrush)brush.Clone(); this.fill = (IFill)fill.Clone(); }