public void AddMappedUseCase(UseCase useCase) { ReferencedObject refobj = new ReferencedObject(); refobj.UniqueID = useCase.UniqueID; this.MappedUseCases.Add(refobj); }
public void AddBeneficiary(Stakeholder stakeholder) { ReferencedObject refobj = new ReferencedObject(); refobj.UniqueID = stakeholder.UniqueID; this.Beneficiaries.Add(refobj); }
public void AddProponent(Stakeholder stakeholder) { ReferencedObject refobj = new ReferencedObject(); refobj.UniqueID = stakeholder.UniqueID; this.Proponents.Add(refobj); }
public void RemoveMappedUseCase(UseCase useCase) { ReferencedObject refobj = (ReferencedObject)this.MappedUseCases.FindByUniqueID(useCase.UniqueID); if (refobj != null) { this.MappedUseCases.Remove(refobj); } }
public void RemoveBeneficiary(Stakeholder stakeholder) { ReferencedObject refobj = (ReferencedObject)this.Beneficiaries.FindByUniqueID(stakeholder.UniqueID); if (refobj != null) { this.Beneficiaries.Remove(refobj); } }
public void RemoveProponent(Stakeholder stakeholder) { ReferencedObject refobj = (ReferencedObject)this.Proponents.FindByUniqueID(stakeholder.UniqueID); if (refobj != null) { this.Proponents.Remove(refobj); } }
public object FindByUniqueID(String uniqueID) { ReferencedObject refobj = null; foreach (ReferencedObject tmpRefobj in this.items) { if (tmpRefobj.UniqueID == uniqueID) { refobj = tmpRefobj; } } return(refobj); }