Ejemplo n.º 1
0
 public GameWindow()
 {
     InitializeComponent();
     defaultButtons = new[] { Hit, Stand, Split };
     splitButtons = new[] { HitLeft, HitRight, StandLeft, StandRight };
     DataContext = new GameViewModel(this, "temp");
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 public HitLeftCommand(GameViewModel viewModel)
 {
     this.viewModel = viewModel;
 }
Ejemplo n.º 4
0
 public StandCommand(GameViewModel model)
 {
     viewModel = model;
 }
Ejemplo n.º 5
0
 public HitCommand(GameViewModel model)
 {
     viewModel = model;
 }
Ejemplo n.º 6
0
 public DealCommand(GameViewModel viewModel)
 {
     this.viewModel = viewModel;
 }
Ejemplo n.º 7
0
 public RulesCommand(GameViewModel viewModel)
 {
     this.viewModel = viewModel;
 }
Ejemplo n.º 8
0
 public StandRightCommand(GameViewModel viewModel)
 {
     this.viewModel = viewModel;
 }