On Wed, Apr 15, 2009 at 6:55 PM, Mauricio Scheffer <[email protected]> wrote: > > I'd use a dictionary: > > string type = "Widget"; > var options = new Hashtable(); > options[type] = GetListOfOptionsByType(type); > PropertyBag["type"] = type; > PropertyBag["Options"] = options; > > then > > $Options.get_Item($type) >
Thank you for the reply, Mauricio. I ended up doing something very similar. Something like... PropertyBag["type"] = type; PropertyBag["optionsRetriever"] = new OptionsRetriever(); ...and then... $optionsRetriever.GetOptions($type) It's actually quite a bit different than that, but the principle I used is along these lines, i.e. put an object in the property bag that exposes a method which is then called by the view, passing along method parameters. Thanks again! --Stuart --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en -~----------~----~----~----~------~----~------~--~---
