public Form1() { InitializeComponent(); _client = new CovidServiceClient(); DisplayMessage.Text = "Loading..."; // init datetimepicker values dateTimePicker_From.Value = DateTime.Now.AddMonths(-4); //dateTimePicker_To.Value = DateTime.Now; var task = Task.Factory.StartNew(() => _client.GetCountries()); task.ContinueWith(e => { if (e.IsCompleted) { List <Country> countries = task.Result; if (countries != null) { Action setFinished = () => { var bindingSource1 = new BindingSource(); bindingSource1.DataSource = countries; comboBox_Countries.DataSource = bindingSource1.DataSource; comboBox_Countries.DisplayMember = "CountryMember"; comboBox_Countries.ValueMember = "ISO2"; DisplayMessage.Text = ""; }; Invoke(setFinished); } } }); }
public CommandService(ICovidService covService) { _covService = covService; }
public CovidInfoCommand(ICovidService service) { _service = service; }
public CoronaPageViewModel(INavigationService navigationService, ICovidService covidService) : base(navigationService) { _covidService = covidService; }
public HomeController(ICovidService apiservice) { _apiService = apiservice; }
public AdminService(ICovidService covService) { Admin = new AdminModel(); _covService = covService; }
public HomeController(ILogger <HomeController> logger, ICovidService CovidService, IPushService PushService) { _logger = logger; _covidService = CovidService; _pushService = PushService; }
public PredictionController(ICovidService covidService) { _covidService = covidService; }
public MythKzCommand(ICovidService service) { _service = service; }
public CovidCountryDataQueryHandler(ICovidService service) { _service = service; }
public CovidHub(ICovidService covidService) { _covidService = covidService; }
public InfoCommandMain(ICovidService service) { _service = service; }
public StatusController(ICovidService covidService) { _covidService = covidService; }
public MythCommandMain(ICovidService service) { _service = service; }
public CovidController(ICovidService covidService) { _covidService = covidService; }
public CovidController(ICovidService covidService, IMapper mapper) { _covidService = covidService; _mapper = mapper; }
public HomeController(ICovidService covidService) { _covidService = covidService; }
public HomeController(ILogger <HomeController> logger, ICovidService covidService, CovidDbContext covidDbContext) { _logger = logger; _covidService = covidService; _covidDbContext = covidDbContext; }