// 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(); }
public HomeController(IGameRegistry gameRegistry, IHighScoreRepository highScoreRepository) { _gameRegistry = gameRegistry; _highScoreRepository = highScoreRepository; }
public HangmanController(IWordProvider wordProvider, IHighScoreRepository highScoreRepository) { _wordProvider = wordProvider; _highScoreRepository = highScoreRepository; }
public GridFlipController(IHighScoreRepository highScoreRepository) { _highScoreRepository = highScoreRepository; }
public HighScoreBlock(IHighScoreRepository highScoreRepository) { _highScoreRepository = highScoreRepository; }
public HighScorePresenter(IHighScoreView view, IHighScoreRepository repository) { this.view = view; view.Presenter = this; this.repository = repository; }