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

            return(Instance);
        }
Ejemplo n.º 2
0
        public WeatherDataLoader(LocationData location)
        {
            wm = WeatherManager.GetInstance();

            this.location = location;

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