Exemple #1
0
                protected internal override void ReportStatusTransition(ManagementOCU_ManagementOcuFSMContext context, ReportStatus msg)
                {
                    ManagementOCU_ManagementOcuFSM ctxt = context.Owner;


#if TRACE
                    Trace.WriteLine(
                        "TRANSITION   : ManagementOCU_ManagementOcuFSM_SM.HandleMenu.ReportStatusTransition(, ReportStatus msg)");
#endif


                    context.State.Exit(context);
                    context.ClearState();

                    try
                    {
                        ctxt.displayStatusAction(msg);
                        ctxt.displayMenuAction();
                        ctxt.processNotifications("HandleMenu", null);
                    }
                    finally
                    {
                        context.State = ManagementOCU_ManagementOcuFSM_SM.HandleMenu;
                        context.State.Entry(context);
                    }

                    return;
                }