Exemplo n.º 1
0
 /// <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);
 }
Exemplo n.º 2
0
 /// <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);
 }