コード例 #1
0
        private void SetValue(string themeID, WeatherValue.ValueName name)
        {
            switch (name)
            {
            case WeatherValue.ValueName.MinTemperatureDay:
                MinTemperatureDay = new WeatherValue(themeID, name);
                break;

            case WeatherValue.ValueName.MaxTemperatureDay:
                MaxTemperatureDay = new WeatherValue(themeID, name);
                break;

            case WeatherValue.ValueName.MinTemperatureNight:
                MinTemperatureNight = new WeatherValue(themeID, name);
                break;

            case WeatherValue.ValueName.MaxTemperatureNight:
                MaxTemperatureNight = new WeatherValue(themeID, name);
                break;

            case WeatherValue.ValueName.MinTemperatureRain:
                MinTemperatureRain = new WeatherValue(themeID, name);
                break;

            case WeatherValue.ValueName.MaxTemperatureRain:
                MaxTemperatureRain = new WeatherValue(themeID, name);
                break;

            case WeatherValue.ValueName.MinTemperatureFog:
                MinTemperatureFog = new WeatherValue(themeID, name);
                break;

            case WeatherValue.ValueName.MaxTemperatureFog:
                MaxTemperatureFog = new WeatherValue(themeID, name);
                break;

            case WeatherValue.ValueName.RainProbabilityDay:
                RainProbabilityDay = new WeatherValue(themeID, name);
                break;

            case WeatherValue.ValueName.RainProbabilityNight:
                RainProbabilityNight = new WeatherValue(themeID, name);
                break;

            case WeatherValue.ValueName.FogProbabilityDay:
                FogProbabilityDay = new WeatherValue(themeID, name);
                break;

            case WeatherValue.ValueName.FogProbabilityNight:
                FogProbabilityNight = new WeatherValue(themeID, name);
                break;

            case WeatherValue.ValueName.NorthernLightsProbability:
                NorthernLightsProbability = new WeatherValue(themeID, name);
                break;
            }
        }
コード例 #2
0
 private void Initialize()
 {
     MinTemperatureDay         = new WeatherValue(WeatherValue.ValueName.MinTemperatureDay);
     MaxTemperatureDay         = new WeatherValue(WeatherValue.ValueName.MaxTemperatureDay);
     MinTemperatureNight       = new WeatherValue(WeatherValue.ValueName.MinTemperatureNight);
     MaxTemperatureNight       = new WeatherValue(WeatherValue.ValueName.MaxTemperatureNight);
     MinTemperatureRain        = new WeatherValue(WeatherValue.ValueName.MinTemperatureRain);
     MaxTemperatureRain        = new WeatherValue(WeatherValue.ValueName.MaxTemperatureRain);
     MinTemperatureFog         = new WeatherValue(WeatherValue.ValueName.MinTemperatureFog);
     MaxTemperatureFog         = new WeatherValue(WeatherValue.ValueName.MaxTemperatureFog);
     RainProbabilityDay        = new WeatherValue(WeatherValue.ValueName.RainProbabilityDay);
     RainProbabilityNight      = new WeatherValue(WeatherValue.ValueName.RainProbabilityNight);
     FogProbabilityDay         = new WeatherValue(WeatherValue.ValueName.FogProbabilityDay);
     FogProbabilityNight       = new WeatherValue(WeatherValue.ValueName.FogProbabilityNight);
     NorthernLightsProbability = new WeatherValue(WeatherValue.ValueName.NorthernLightsProbability);
 }