Ejemplo n.º 1
0
 public SquareItem(Square square, Figure figure, Color color)
 {
     this.innerSquare = square;
     this.SetBackgroundColor(square);
     this.FigureType    = figure;
     this.FigureColor   = color;
     this.ColoredFigure = ColoredFigureHelper.Create(color, figure);
 }
Ejemplo n.º 2
0
 public void UpdateChessFigure(Figure newFigure, Color newColor)
 {
     this.FigureType    = newFigure;
     this.FigureColor   = newColor;
     this.ColoredFigure = ColoredFigureHelper.Create(this.FigureColor, this.FigureType);
 }