Ejemplo n.º 1
0
 public void AddRelations(List<int> selectedXmlID, int tagId)
 {
     foreach (int i in selectedXmlID)
         {
             XmlTagRelation relation = new XmlTagRelation();
             relation.TagID = tagId;
             relation.XmlFileID = i;
             _relationsList.Add(relation);
         }
 }
Ejemplo n.º 2
0
 public void SaveRelationsToDataBase(DataBase dataBase, List<XmlTagRelation> relationsList)
 {
     XmlTagRelation[] relationsArray = new XmlTagRelation[relationsList.Count];
     relationsList.CopyTo(relationsArray, 0);
     dataBase.SaveRelations(relationsArray);
 }