public FillBoard(Game game, Saper saper) { this.createField = new CreateField(saper, game); this.game = game; this.saper = saper; Fill(); }
public ReadBoard(Game game, Saper saper, List <Field> fieldList) { this.createField = new CreateField(saper, game); this.game = game; this.saper = saper; this.fieldList = fieldList; Read(); }
public void Remove(Game game, Saper saper) { if (game.Board.GameBoard.Btn_grid != null) { for (int x = 0; x < game.Board.GameBoard.Btn_grid.GetLength(0); x++) { for (int y = 0; y < game.Board.GameBoard.Btn_grid.GetLength(1); y++) { if (saper.Controls.Contains(game.Board.GameBoard.Btn_grid[x, y])) { saper.Controls.Remove(game.Board.GameBoard.Btn_grid[x, y]); } if (saper.Controls.Contains(game.Board.GameBoard.Lbl_grid[x, y])) { saper.Controls.Remove(game.Board.GameBoard.Lbl_grid[x, y]); } } } } }
public CleanGame(Game game, Saper saper) { Remove(game, saper); }
public CreateField(Saper saper, Game game) { this.saper = saper; this.game = game; }