public CoronavirusResults(ICoronavirusCountryService coronavirusCountryService) { _coronavirusCountryService = coronavirusCountryService; CoronavirusCountryNames = null; CoronavirusCountryCaseCounts = null; }
public static CoronavirusCountriesChartViewModel LoadViewModel(ICoronavirusCountryService coronavirusCountryService, Action<Task> onLoaded = null) { CoronavirusCountriesChartViewModel viewModel = new CoronavirusCountriesChartViewModel(coronavirusCountryService); viewModel.Load().ContinueWith(t => onLoaded?.Invoke(t)); return viewModel; }
public static CoronavirusCountriesChartViewModel LoadViewModel(ICoronavirusCountryService coronavirusCountryService, Action <Task> onLoaded = null) { CoronavirusCountriesChartViewModel viewModel = new CoronavirusCountriesChartViewModel(coronavirusCountryService); viewModel.Load().ContinueWith(t => onLoaded?.Invoke(t)); // to po to by model sie nie wyswietlil nie ladujac wszystkich danych return(viewModel); }
public static CoronavirusResults Factory(ICoronavirusCountryService coronavirusCountryService, Action <Task> onLoaded = null) { CoronavirusResults coronavirusResults = new CoronavirusResults(coronavirusCountryService); coronavirusResults.Load().ContinueWith(t => onLoaded?.Invoke(t)); return(coronavirusResults); }
public MainViewModel(CoronaCountriesViewModel coronaCountriesViewModel, CoronaCountryInformationViewModel coronaCountryInformationViewModel) { _coronavirusCountryService = new APICoronavirusCountryService(); PageViewModels.Add(coronaCountriesViewModel); PageViewModels.Add(coronaCountryInformationViewModel); Mediator.Subscribe("GoTo1Screen", OnGo1Screen); Mediator.Subscribe("GoTo2Screen", OnGo2Screen); }
public CoronavirusCountriesChartViewModel(ICoronavirusCountryService coronavirusCountryService) { _coronavirusCountryService = coronavirusCountryService; CoronavirusCountryNames = new ObservableCollection<string>(); }
public CoronavirusCountiresChartViewModel(ICoronavirusCountryService coronavirusCountryService) { _coronavirusCountryService = coronavirusCountryService; }
public CoronavirusController(ICoronavirusCountryService coronavirusCountryService) { _coronavirusCountryService = coronavirusCountryService; }
//public HomeController(IAuthenticator authenticator, IStringLocalizer<HomeController> localizer) public HomeController(IStringLocalizer <HomeController> localizer, ICoronavirusCountryService coronavirusCountryService) { //_authenticator = authenticator; _localizer = localizer; _coronavirusCountryService = coronavirusCountryService; }