public CreateCBSysWorkFlowStates SetLastSatelliteEnd(CBody Satellite) { if (ActiveState != CreateCBSysWorkFlowStates.SelectSatellite) { ActiveState = CreateCBSysWorkFlowStates.Error; return(ActiveState); } Sys.Satellites.Add(Satellite); ActiveState = CreateCBSysWorkFlowStates.CreateCBSys; return(ActiveState); }
public CreateCBSysWorkFlowStates SetCentralBody(CBody CentralBody) { if (ActiveState != CreateCBSysWorkFlowStates.SelectCentralBody) { ActiveState = CreateCBSysWorkFlowStates.Error; return(ActiveState); } Sys.CentralBody = CentralBody; ActiveState = CreateCBSysWorkFlowStates.SelectSatellite; return(ActiveState); }