Exemplo n.º 1
0
 public GameOneViewModel(HomeWindowViewModel homeWindowViewModel)
 {
     HomeViewModel = homeWindowViewModel;
     _gameOneOverViewModel = new GameOneOverViewModel();
     _gameOneOverViewModel.RePlayCurrentGame += GameOneOverViewModel_RePlayCurrentGame;
     _gameOneOverViewModel.PlayNewGame += GameOneOverViewModel_PlayNewGame;
 }
        public object CreateViewModel()
        {
            GameOneOverViewModel gameOneViewModel = new GameOneOverViewModel();

            if (Designer.IsDesignMode)
            {
                gameOneViewModel.AdjustedScore = "21 Words Per Minute";
                gameOneViewModel.Score = "33 Words Per Minute";
                return gameOneViewModel;
            }

            return null;
        }