Пример #1
0
        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);
                    }
                }
            });
        }
Пример #2
0
 public CommandService(ICovidService covService)
 {
     _covService = covService;
 }
Пример #3
0
 public CovidInfoCommand(ICovidService service)
 {
     _service = service;
 }
 public CoronaPageViewModel(INavigationService navigationService, ICovidService covidService) : base(navigationService)
 {
     _covidService = covidService;
 }
Пример #5
0
 public HomeController(ICovidService apiservice)
 {
     _apiService = apiservice;
 }
Пример #6
0
 public AdminService(ICovidService covService)
 {
     Admin       = new AdminModel();
     _covService = covService;
 }
Пример #7
0
 public HomeController(ILogger <HomeController> logger, ICovidService CovidService, IPushService PushService)
 {
     _logger       = logger;
     _covidService = CovidService;
     _pushService  = PushService;
 }
 public PredictionController(ICovidService covidService)
 {
     _covidService = covidService;
 }
Пример #9
0
 public MythKzCommand(ICovidService service)
 {
     _service = service;
 }
Пример #10
0
 public CovidCountryDataQueryHandler(ICovidService service)
 {
     _service = service;
 }
Пример #11
0
 public CovidHub(ICovidService covidService)
 {
     _covidService = covidService;
 }
Пример #12
0
 public InfoCommandMain(ICovidService service)
 {
     _service = service;
 }
Пример #13
0
 public StatusController(ICovidService covidService)
 {
     _covidService = covidService;
 }
Пример #14
0
 public MythCommandMain(ICovidService service)
 {
     _service = service;
 }
Пример #15
0
 public CovidController(ICovidService covidService)
 {
     _covidService = covidService;
 }
Пример #16
0
 public CovidController(ICovidService covidService, IMapper mapper)
 {
     _covidService = covidService;
     _mapper       = mapper;
 }
Пример #17
0
 public HomeController(ICovidService covidService)
 {
     _covidService = covidService;
 }
Пример #18
0
 public HomeController(ILogger <HomeController> logger, ICovidService covidService, CovidDbContext covidDbContext)
 {
     _logger         = logger;
     _covidService   = covidService;
     _covidDbContext = covidDbContext;
 }