protected internal override void MenuItemEnteredTransition(ManagementOCU_ManagementOcuFSMContext context, MenuItemEntered msg) { ManagementOCU_ManagementOcuFSM ctxt = context.Owner; #if TRACE Trace.WriteLine( "TRANSITION : ManagementOCU_ManagementOcuFSM_SM.WaitForControl.MenuItemEnteredTransition(, MenuItemEntered msg)"); #endif if (!ctxt.isSelectionToEnd(msg)) { context.State.Exit(context); context.ClearState(); try { ctxt.printMessageAction("waiting for AccessControl process to end"); ctxt.sendRequestControlAction(); ctxt.displayMenuAction(); ctxt.processNotifications("WaitForControl", null); } finally { context.State = ManagementOCU_ManagementOcuFSM_SM.WaitForControl; context.State.Entry(context); } } else if (ctxt.isSelectionToEnd(msg)) { context.State.Exit(context); context.ClearState(); try { ctxt.terminateServiceAction(); ctxt.sendRequestControlAction(); ctxt.displayMenuAction(); ctxt.processNotifications("WaitForControl", null); } finally { context.State = ManagementOCU_ManagementOcuFSM_SM.WaitForControl; context.State.Entry(context); } } else { base.MenuItemEnteredTransition(context, msg); } return; }
protected internal override void RejectControlTransition(ManagementOCU_ManagementOcuFSMContext context, RejectControl msg) { ManagementOCU_ManagementOcuFSM ctxt = context.Owner; #if TRACE Trace.WriteLine( "TRANSITION : ManagementOCU_ManagementOcuFSM_SM.HandleMenu.RejectControlTransition(, RejectControl msg)"); #endif context.State.Exit(context); context.ClearState(); try { ctxt.sendRequestControlAction(); ctxt.displayMenuAction(); ctxt.processNotifications("WaitForControl", null); } finally { context.State = ManagementOCU_ManagementOcuFSM_SM.WaitForControl; context.State.Entry(context); } return; }
public override void run() { // Perform any entry actions specified by the start state. pManagementOCU_ManagementOcuFSM.sendRequestControlAction(); pManagementOCU_ManagementOcuFSM.displayMenuAction(); // Kick off receive loop... base.run(); }
protected internal override void ConfirmControlTransition(ManagementOCU_ManagementOcuFSMContext context, ConfirmControl msg) { ManagementOCU_ManagementOcuFSM ctxt = context.Owner; #if TRACE Trace.WriteLine( "TRANSITION : ManagementOCU_ManagementOcuFSM_SM.WaitForControl.ConfirmControlTransition(, ConfirmControl msg)"); #endif if (!ctxt.isControlAccepted(msg)) { context.State.Exit(context); context.ClearState(); try { ctxt.sendRequestControlAction(); ctxt.displayMenuAction(); ctxt.processNotifications("WaitForControl", null); } finally { context.State = ManagementOCU_ManagementOcuFSM_SM.WaitForControl; context.State.Entry(context); } } else if (ctxt.isControlAccepted(msg)) { context.State.Exit(context); context.ClearState(); try { ctxt.displayMenuAction(); ctxt.processNotifications("HandleMenu", null); } finally { context.State = ManagementOCU_ManagementOcuFSM_SM.HandleMenu; context.State.Entry(context); } } else { base.ConfirmControlTransition(context, msg); } return; }