private ConfigWeatherData GetWeatherDataByName(string name) { ConfigWeatherData data = !string.IsNullOrEmpty(name) ? WeatherData.GetWeatherDataConfig(name) : new ConfigWeatherData(); if (data.configRenderingData == null) { if (this._currentRendertingData != null) { data.configRenderingData = this._currentRendertingData.Clone(); } else { data.configRenderingData = ConfigStageRenderingData.CreateDefault(); } } if (data.configSubWeathers == null) { data.configSubWeathers = new ConfigSubWeatherCollection(); } return(data); }
public static ConfigWeatherData CrateDefault() { return(new ConfigWeatherData { configRenderingData = ConfigStageRenderingData.CreateDefault(), configSubWeathers = ConfigSubWeatherCollection.CreateDefault() }); }