Ejemplo n.º 1
0
        private void LoadStations()
        {
            var service  = new FakeMetDataService();
            var result   = service.getCountyTypes("", "");
            var stations = result.Select(c => new Department(c.countyID, c.countyName));

            RunOnUiThread(() => LoadStationsComplete(stations));
        }
Ejemplo n.º 2
0
        private void LoadStations(string dep)
        {
            var service  = new FakeMetDataService();
            var result   = service.getStationsProperties("", "");
            var list     = from item in result where item.department == dep select new { item.stnr, item.name, item.department };
            var stations = list.Select(s => new Station(s.stnr, s.name, s.department));

            RunOnUiThread(() => LoadStationsComplete(stations));
        }
Ejemplo n.º 3
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            var selectedStation = Intent.GetIntExtra("station.number", -1).ToString();
            var timeseriesType  = TimeSeriesType.DailyValues;
            var elements        = Elements.GetString(
                Elements.MinimumTemperature,
                Elements.MaximumTemperature);

            var service = new FakeMetDataService();
            var from    = DateTime.Today.AddDays(-7).ToString("yyyy-MM-dd");

            var metData = service.getMetData(timeseriesType, "", from, "", selectedStation, elements, "", "", "");
        }