.NET - A Simple Finite State Machine Solution