public GameViewModel(StrictGame game) { this.Game = game; ButtonClickedCommand = new RelayCommand(OnButtonClicked); RollCommand = new RelayCommand(OnRoll); }
public GameView(StrictGame game) { InitializeComponent(); vm = new GameViewModel(game); DataContext = vm; game.Moved += (s, a) => RepaintAll(); }