public HighscoreView() { InitializeComponent(); HighscoreViewModel hVM = new HighscoreViewModel(); LVsummary.ItemsSource = hVM.highscores; }
public GameViewModel() { gameModel = new GameModel(); IncrementCommand = new DelegateCommand(gameModel.IncrementMyNumber); DecrementCommand = new DelegateCommand(gameModel.DecrementMyNumber); CheckCommand = new DelegateCommand(Check); ContinueCommand = new DelegateCommand(Continue); ContinueButt = Visibility.Collapsed; CheckCounter = 0; highscoreVM = new HighscoreViewModel(); }
public MainViewModel(int dif) { difficultyViewModel = new DifficultySelectionViewModel(); gameViewModel = new GameViewModel(dif); highscoreViewModel = new HighscoreViewModel(); }