예제 #1
0
        public ObtainWeatherData(WeatherData wd)
        {
            string    rawWeatherData    = DownloadWeatherData(getWeatherURL(wd));
            ArrayList parsedWeatherData = ParseWeatherData(rawWeatherData);

            wd.InitializeWeatherGraph(DefineRows(parsedWeatherData), DefineRowsColumns(parsedWeatherData));
            //  InsertHeaderData(parsedWeatherData);
            //    wd.InitializeWeatherGraph();
            StoreWeatherData(wd, parsedWeatherData);
            DisplayAllWeatherData(wd);
        }
예제 #2
0
        public ObtainWeatherData(WeatherData wd, object o)
        {
            Console.WriteLine("Zip: " + getWeatherURL(wd));
            string    rawWeatherData    = DownloadWeatherData(getWeatherURL(wd));
            ArrayList parsedWeatherData = ParseWeatherData(rawWeatherData);

            wd.InitializeWeatherGraph(DefineRows(parsedWeatherData), DefineRowsColumns(parsedWeatherData));
            //  InsertHeaderData(parsedWeatherData);
            //    wd.InitializeWeatherGraph();
            StoreWeatherData(wd, parsedWeatherData);
            // GetAllWeatherData(wd);
        }