/// <summary> /// Constructor <see cref="Board"/> class. /// </summary> /// <param name="board">Modele du plateau</param> /// <param name="game">Modele du jeu</param> public Board(Diaballik.Board board, Diaballik.Game game) { InitializeComponent(); DataContext = new BoardModel(board, this.GridBoard, game); }
/// <summary> /// Constructor <see cref="BoardModel"/> class. /// </summary> /// <param name="b">Le plateau (modele).</param> /// <param name="gridBoard">La grille</param> /// <param name="game">Le jeu</param> public BoardModel(Diaballik.Board b, Grid gridBoard, Diaballik.Game game) { this.b = b; this.gridBoard = gridBoard; setUpBoard(game); }