/// <summary> /// Button_Command2_Click /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Button_Command2_Click(object sender, RoutedEventArgs e) { Message = "Command #2"; try { MyMachine.MoveNext(MyStateMachine.Command.Command02); } catch (System.Exception ex) { LST.Beep(); Message = ex.Message; } MachineState = MyMachine.CurrentState.ToString(); }