コード例 #1
0
 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);
 }
コード例 #2
0
ファイル: Drawfigure.cs プロジェクト: s4fronov/GraphXDesign
 public Drawfigure(IFigure figure, IBrush brush, IFill fill)
 {
     this.figure = (IFigure)figure.Clone();
     this.brush  = (IBrush)brush.Clone();
     this.fill   = (IFill)fill.Clone();
 }