Woops.  You dropped the variable you are comparing to here. This will always evaluate as true.  BTW I recommend making all of these case structures based on the enum value and handling the default with an error.