コード例 #1
0
 public void SetBoardOptions(BoardOptions boardOptions)
 {
     _numRows  = boardOptions.NumRows;
     _numCols  = boardOptions.NumCols;
     _numMines = boardOptions.NumMines;
     RaisePropertyChanged(() => NumRows);
     RaisePropertyChanged(() => NumCols);
     RaisePropertyChanged(() => UnflaggedMineCount);
     StartNewGame();
 }
コード例 #2
0
 private void OnSetBoardOptionsCommand(BoardOptions boardOptions)
 {
     SetBoardOptions(boardOptions);
 }