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