In trying to get my head wrapped around this I thought I would present where my data is coming from and see if I can figure out how I can get Agfx and this to play well together. This is a weather app so most of the forecast stuff will be similar to the
sample in the codebase (however the first step is tripping me up).
First we need to fetch a list of all sites available. This is currently available in xml format here:
Each site has a code, a name, and a province associated with it. I would see loading this list at start of the app and it would continue the life of the app.
Now once I have the list loaded, I can use LINQ to split it up and say only show a list of cities for Alberta (provinceCode = AB). With that list I can bind it to a listbox, let the user select a city (Athabasca, code = s000001) and form the url to the forecast
feed. The feed for Athabasca is:
From there you just parse the xml to get the full forecast (XSDs are available here: http://dd.weatheroffice.ec.gc.ca/citypage_weather/schema/ for generating a .cs class for deserialization) and present some kind of UI.
So the starting point for me is how to get Agfx to load the initial list of sites. There's no key to load the list but each site becomes its own key to load the data later for a specific site.