public HighscoreView()
        {
            InitializeComponent();
            HighscoreViewModel hVM = new HighscoreViewModel();

            LVsummary.ItemsSource = hVM.highscores;
        }
Example #2
0
        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();
        }
Example #3
0
 public MainViewModel(int dif)
 {
     difficultyViewModel = new DifficultySelectionViewModel();
     gameViewModel       = new GameViewModel(dif);
     highscoreViewModel  = new HighscoreViewModel();
 }