Ejemplo n.º 1
0
 public void Remove(DocumentRelationModel dModel)
 {
     m_Items.Remove(dModel);
 }
Ejemplo n.º 2
0
 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);
 }