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