Refactored a variety of things to meet more common coding standards (replaced if/elseif/elseif/elseif... with switch statements, added repeated string constants to a resource dictionary, etc.)