public GameAction(TicTacToeViewModel owner) { this.Owner = owner; this._Undo = new DelegateCommand(this.OnExecuteUndo, this.CanUndo); this._Redo = new DelegateCommand(this.OnExecuteRedo, this.CanRedo); }
internal TileViewModel(TicTacToeViewModel owner, int x, int y) { this.X = x; this.Y = y; this.Owner = owner; this._Check = new DelegateCommand(OnCheck, CanCheck); }
public CheckAction(TicTacToeViewModel owner, TileViewModel tile, bool turn) : base(owner) { this.Tile = tile; this.Turn = turn; }