示例#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 WeatherWindDeviceViewModel(WeatherWindDevice device) : base(device)
 {
     maxValue         = device.MaxValue;
     direction        = device.Direction;
     directionTextual = device.DirectionTextual;
 }