Exemple #1
0
        public CreateCBSysWorkFlowStates Begin()
        {
            if (ActiveState != CreateCBSysWorkFlowStates.Start && ActiveState != CreateCBSysWorkFlowStates.Fin && ActiveState != CreateCBSysWorkFlowStates.Cancel)
            {
                return(CreateCBSysWorkFlowStates.Error);
            }

            ActiveState = CreateCBSysWorkFlowStates.SelectCentralBody;

            Sys = new CBSys();

            return(ActiveState);
        }
Exemple #2
0
        CreateCBSysWorkFlowStates ICreateCBSys.CreateCBSys(out CBSys NewCBSys)
        {
            NewCBSys = Sys;
            if (ActiveState == CreateCBSysWorkFlowStates.CreateCBSys)
            {
                ActiveState = CreateCBSysWorkFlowStates.Fin;
            }
            else
            {
                ActiveState = CreateCBSysWorkFlowStates.Error;
            }

            return(ActiveState);
        }