public static WeatherManager GetInstance()
        {
            if (Instance == null)
            {
                Instance = new WeatherManager();
            }

            return(Instance);
        }
示例#2
0
        public WeatherDataLoader(LocationData location)
        {
            wm = WeatherManager.GetInstance();

            this.location = location;

            if (this.location == null)
            {
                throw new ArgumentNullException(nameof(location));
            }
        }