public void Remove(DocumentRelationModel dModel) { m_Items.Remove(dModel); }
public int Add(DocumentRelationModel dModel) { foreach (DocumentRelationModel model in m_Items) { if (model.Association.Name.ToLower().Equals(dModel.Association.Name.ToLower())) { throw new ArgumentException( "There is already a DocumentRelationModel item in the container with the same name."); } } return m_Items.Add(dModel); }