コード例 #1
0
        public MainViewModelDT()
        {
            MesswerteHeader = "MESSWERTE (x)";
            Aggregate = new DataAggregate(null, null);

            Aggregate.OzoneDisplayData = new List<OzoneInformation>()
            {
                new OzoneInformation()
                {
                    Id = "1",
                    Name = "Leoben Zentrum",
                    OneHourAverage = 5,
                    OneHourAverageTimestampLocal = new DateTime(2012, 10, 22, 14, 00, 00),
                    EightHoursAverage = 18,
                    Height = 540,
                    State = "ST"
                },
                new OzoneInformation()
                {
                    Id = "2",
                    Name = "Bad Ischl",
                    OneHourAverage = 221,
                    OneHourAverageTimestampLocal = new DateTime(2012, 10, 22, 14, 00, 00),
                    EightHoursAverage = 240,
                    Height = 568,
                    State = "OÖ"
                },
            };
        }
コード例 #2
0
        public MainViewModel(INavigationService navigationService,
            ILocationService locationService,
            IOzoneDataService dataService)
        {
            _navigationService = navigationService;

            Aggregate = new DataAggregate(locationService, dataService)
            {
                AutoInferAirqualityOnFilterPropertyChanges = true
            };

            MesswerteHeader = MesswerteHeaderMainText;

            // do this before listening to INPC callbacks
            LoadLocalSettings();

            Aggregate.PropertyChanged += Aggregate_PropertyChanged;
        }
コード例 #3
0
 public MainPageViewModel()
 {
     Aggregate = new DataAggregate(new LocationService(), new OzoneDataService(new DefaultHttpClient()));
     Aggregate.ResetAnyMeasurementSelection += Aggregate_ResetAnyMeasurementSelection;
 }