コード例 #1
0
        private void GenerateDevices()
        {
            _airTempDevice = new WeatherAirDevice(
                id: "Weather_Air_Device",
                title: "Temperatur - Ute",
                parentService: this
                );

            _roadTempDevice = new WeatherRoadDevice(
                id: "Weather_Road_Device",
                title: "Vägtemperatur",
                parentService:  this
                );

            _precipitationDevice = new WeatherPercipitationDevice(
                id: "Weather_Precipitation_Device",
                title: "Nederbörd",
                parentService:  this
                );

            _windDevice = new WeatherWindDevice(
                id: "Weather_Wind_Device",
                title: "Vind",
                parentService:  this
                );
        }
コード例 #2
0
 public WeatherAirDeviceViewModel(WeatherAirDevice device) : base(device)
 {
     relativeHumidity = device.RealtiveHumidity;
 }