예제 #1
0
        public HighscoreView()
        {
            InitializeComponent();
            HighscoreViewModel hVM = new HighscoreViewModel();

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