public FlagsMapGame(IOptions gameOptions, ICountrySelector selector, IOptions selectorOptions, ITimerService timerService, ICountryCollection countryCollection) : base(gameOptions, selector, selectorOptions, timerService) { _randomizedContryList = countryCollection.Countries .Select(c => new { Country = c, Order = _random.Next() }) .OrderBy(i => i.Order) .Select(i => i.Country) .ToList(); }
public GameBase(IOptions gameOptions, ICountrySelector selector, IOptions selectorOptions, ITimerService timerService) { _timerService = timerService; _timerService.Subscribe(RaiseHitScoreChanged); GameOptions = gameOptions; _selector = selector; _selectorOptions = selectorOptions; }
public CountryDetailsWindowViewModel(ViewManager viewManager, ICountrySelector countrySelector) { CreateRelayCommands(viewManager); _countrySelector = countrySelector; Messenger.Default.Register<CountryToShowDetailsMessage>(this, SelectCountry); // For Expression Blend only if (IsInDesignModeStatic) { SelectedCountry = new Country {Tag = "no", Name = "Norway", Continent = "Europe", Capital = "Oslo"}; } }
public ResultsWindowViewModel(ViewManager viewManager, ICountrySelector countrySelector) { CreateRelayCommands(viewManager); _countrySelector = countrySelector; Countries = new ObservableCollection<Country>(); Messenger.Default.Register<SearchParamsMessage>(this, ParseMessageFromMainWindow); // For Expression Blend only if (IsInDesignModeStatic) { _countrySelector.GetCountriesByParams(Countries, 123, 345, 567); } }
public CountriesListWindowViewModel(ViewManager viewManager, ICountrySelector countrySelector) { CreateRelayCommands(viewManager); _countrySelector = countrySelector; Countries = new ObservableCollection<Country>(); _countrySelector.GetAllCountries(Countries); SelectedCountry = null; #if !WINDOWS_PHONE if (Countries.Count > 0) SelectedCountry = Countries[0]; #endif CreateGroups(); }
public MapGame(IOptions gameOptions, ICountrySelector selector, IOptions selectorOptions, ITimerService timerService) : base(gameOptions, selector, selectorOptions, timerService) { }
public IGame CreateGame(IOptions gameOptions, ICountrySelector selector, IOptions selectorOptions) { return(new FlagsMapGame(gameOptions, selector, selectorOptions, _timerService, _countryCollection)); }
public SelectorMV(ICountrySelector selector) { Selector = selector; }