Пример #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();
 }