state-chart

Is there a simple .NET code generator for a Event-driven finite state machine?

Is there a simple .NET code generator for a Event-driven finite state machine? I am tired of doing this by hand for user-interface objects. I just need the enum definition, the switch statement, and each function call. I do not need a "library". See Event-driven finite state machine at http://en.wikipedia.org/wiki/Event_driven_finite_s...