/// <summary> /// Initializes a new instance of the <see cref="CellViewModel"/> class. /// </summary> /// <param name="gameViewModel">Game view model.</param> /// <param name="cell">Cell.</param> public CellViewModel(IMineSearchGameViewModel gameViewModel, ICell cell) { GameViewModel = gameViewModel; Game = gameViewModel.Game; Cell = cell; UseQuestionableState = gameViewModel.GameSettings.UseQuestionableState; FlagCommand = new DelegateCommand(FlagCell); RevealCommand = new DelegateCommand(RevealCell); }
/// <summary> /// Initializes a new instance of the <see cref="CellViewModel"/> class. /// </summary> /// <param name="gameViewModel">Game view model.</param> /// <param name="cell">Cell.</param> public MineCellViewModel(IMineSearchGameViewModel gameViewModel, ICell cell) : base(gameViewModel, cell) { }