Exemple #1
0
        public GameViewModel(StrictGame game)
        {
            this.Game = game;

            ButtonClickedCommand = new RelayCommand(OnButtonClicked);
            RollCommand          = new RelayCommand(OnRoll);
        }
Exemple #2
0
        public GameView(StrictGame game)
        {
            InitializeComponent();

            vm          = new GameViewModel(game);
            DataContext = vm;

            game.Moved += (s, a) => RepaintAll();
        }