コード例 #1
0
		public GameAction(TicTacToeViewModel owner)
		{
			this.Owner = owner;

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