public CreateCBSysWorkFlowStates Begin() { if (ActiveState != CreateCBSysWorkFlowStates.Start && ActiveState != CreateCBSysWorkFlowStates.Fin && ActiveState != CreateCBSysWorkFlowStates.Cancel) { return(CreateCBSysWorkFlowStates.Error); } ActiveState = CreateCBSysWorkFlowStates.SelectCentralBody; Sys = new CBSys(); return(ActiveState); }
CreateCBSysWorkFlowStates ICreateCBSys.CreateCBSys(out CBSys NewCBSys) { NewCBSys = Sys; if (ActiveState == CreateCBSysWorkFlowStates.CreateCBSys) { ActiveState = CreateCBSysWorkFlowStates.Fin; } else { ActiveState = CreateCBSysWorkFlowStates.Error; } return(ActiveState); }