public GameWindow() { InitializeComponent(); defaultButtons = new[] { Hit, Stand, Split }; splitButtons = new[] { HitLeft, HitRight, StandLeft, StandRight }; DataContext = new GameViewModel(this, "temp"); }
public Commands(GameViewModel viewModel) { DealCommand = new DealCommand(viewModel); HitCommand = new HitCommand(viewModel); StandCommand = new StandCommand(viewModel); SplitCommand = new SplitCommand(viewModel); RulesCommand = new RulesCommand(viewModel); HitLeftCommand = new HitLeftCommand(viewModel); StandLeftCommand = new StandLeftCommand(viewModel); HitRightCommand = new HitRightCommand(viewModel); StandRightCommand = new StandRightCommand(viewModel); }
public HitLeftCommand(GameViewModel viewModel) { this.viewModel = viewModel; }
public StandCommand(GameViewModel model) { viewModel = model; }
public HitCommand(GameViewModel model) { viewModel = model; }
public DealCommand(GameViewModel viewModel) { this.viewModel = viewModel; }
public RulesCommand(GameViewModel viewModel) { this.viewModel = viewModel; }
public StandRightCommand(GameViewModel viewModel) { this.viewModel = viewModel; }