Someone had questions about the article recent I wrote on DotNetSlackers are:
“i am curious to know how you have hooked the DownloadPhotos to voltaControl1, is it hooked automatically, when added to the volta project, what is the case of using external flickr api ? Also, let me know what is the purpose of screen_name in voltaControl1.”
You might have the same questions, so to clarify, here are the answers:
Inside VoltaControl, PhotosLoaded event of FlickrHelper class is subscribed and FlickrHelper's DownloadPhotos is invoked so that as soon as the photo data is finished downloading, the subscriber (VoltaControl) is notified with the photo data, to manipulate the UI. Such events are not automatic, these are manually created inside FlickrHelper class.
If you'd like to use external Flickr API, you need to change the way how it works now. It's been designed to make a tiny widget with simple and least functionalities in order to demonstrate making of a Volta control.
screen_name is your Flickr account's screen name which is a required parameter to retrieve the "NSID" of your account which is necessary to build URLs to your photos.