Exemple #1
0
 // Constructor
 public MainPage()
 {
     InitializeComponent();
     repository = new HighScoreSettingsRepository();
     //repository = new HighScoreFileRepository();
     //repository = new HighScoreDatabaseRepository();
     highscores = new ObservableCollection <HighScore>(repository.Load());
     HighScoresList.ItemsSource = highscores;
 }
 // Constructor
 public MainPage()
 {
     InitializeComponent();
     //repository = new HighScoreSettingsRepository();
     //repository = new HighScoreFileRepository();
     repository = new HighScoreDatabaseRepository();
     highscores = new ObservableCollection<HighScore>(repository.Load());
     HighScoresList.ItemsSource = highscores;
 }
        // Constructor
        public MainPage()
        {
            InitializeComponent();
            repository = new HighScoreSettingsRepository();
            //repository = new HighScoreFileRepository();
            //repository = new HighScoreDatabaseRepository();
            highscores = new ObservableCollection <HighScore>(repository.Load());
            HighScoresList.ItemsSource = highscores;

            // Sample code to localize the ApplicationBar
            //BuildLocalizedApplicationBar();
        }
        // Constructor
        public MainPage()
        {
            InitializeComponent();
            repository = new HighScoreSettingsRepository();
            //repository = new HighScoreFileRepository();
            //repository = new HighScoreDatabaseRepository();
            highscores = new ObservableCollection<HighScore>(repository.Load());
            HighScoresList.ItemsSource = highscores;

            // Sample code to localize the ApplicationBar
            //BuildLocalizedApplicationBar();
        }
Exemple #5
0
 public HomeController(IGameRegistry gameRegistry, IHighScoreRepository highScoreRepository)
 {
     _gameRegistry = gameRegistry;
     _highScoreRepository = highScoreRepository;
 }
Exemple #6
0
 public HangmanController(IWordProvider wordProvider, IHighScoreRepository highScoreRepository)
 {
     _wordProvider = wordProvider;
     _highScoreRepository = highScoreRepository;
 }
Exemple #7
0
 public HangmanController(IWordProvider wordProvider, IHighScoreRepository highScoreRepository)
 {
     _wordProvider        = wordProvider;
     _highScoreRepository = highScoreRepository;
 }
Exemple #8
0
 public GridFlipController(IHighScoreRepository highScoreRepository)
 {
     _highScoreRepository = highScoreRepository;
 }
Exemple #9
0
 public HighScoreBlock(IHighScoreRepository highScoreRepository)
 {
     _highScoreRepository = highScoreRepository;
 }
Exemple #10
0
 public HomeController(IGameRegistry gameRegistry, IHighScoreRepository highScoreRepository)
 {
     _gameRegistry        = gameRegistry;
     _highScoreRepository = highScoreRepository;
 }
 public HighScorePresenter(IHighScoreView view, IHighScoreRepository repository)
 {
     this.view       = view;
     view.Presenter  = this;
     this.repository = repository;
 }
Exemple #12
0
 public GridFlipController(IHighScoreRepository highScoreRepository)
 {
     _highScoreRepository = highScoreRepository;
 }
Exemple #13
0
 public HighScoreBlock(IHighScoreRepository highScoreRepository)
 {
     _highScoreRepository = highScoreRepository;
 }