state machine added into c# code. listbox added to c# application. text parse will continue