Dear PhillyDotNet.org attendees,
Congratulations on being part of such a great local community. What a great group you have going! I had a great time with my presentation last night, and form the feedback I got, everyone seemed to enjoy it.
For the code. If you were one of about 20 people who stayed after and asked questions. You saw me add a data grid to the Web Project, and bind it against an the database using the MVP pattern. If you didn't stay then the code is very simple. I created a new Presenter named RetrieveFaqListPresenter, and a new Interface Contract called IRetrieveFaqlistView. Now the Web page we created implements both of those interfaces, and has a data grid on it.
After I got back to my hotel, I made another simple change. Since now we have two presenters going to the database, they both shouldn't be calling the same code, so the Presentation project has a new Singleton object, called FaqHelper, who has the simple job of fetching data.
If you're interested in getting to the next step, I challenge you to redo this presentation in your own typing, and if you're feeling up to it, create a windows form with a grid, that binds to our new View/Presenter.
The code we created in the demo, and that I slightly modified after is available here.
Also, in the root of this zip file, is a .sql file that will let you create the FAQ table we were working with.
For those that were lucky enough to win software licenses, I have to ship your emails off to the vendors, and I usually give them a week turn around.
Thank you so much for having me – you have a really great user group, and a great facility for the group, and great group leadership.