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