public static WeatherManager GetInstance() { if (Instance == null) { Instance = new WeatherManager(); } return(Instance); }
public WeatherDataLoader(LocationData location) { wm = WeatherManager.GetInstance(); this.location = location; if (this.location == null) { throw new ArgumentNullException(nameof(location)); } }