odujosh wrote:Yea Switch statements are evil anyways. Basically your doing a manual table look up in the example and setting temp based off the value of the switch parameter.
I think the code would be better off if it called some data access pulled it from a source (hash table, database table, xml file, whatever) and then operate on it using a work flow. With XAML adding a branch isn't a code change. You can bring down a process push in the new XAML and bring it back up. Depending on how populaur the work flow and the eventing infrastructure you have in place you may even be able to do it in process.
Call me a snob