Ejemplo n.º 1
0
        public void AddTermin(IntOntologyItem di, Termin t)
        {
            OntologyTermin nt = new OntologyTermin()
            {
                Owner = di, Tag = t.Tag
            };

            t.CopyTo(nt);
            m_Termins.Add(nt);
        }
Ejemplo n.º 2
0
 public void AddItem(IntOntologyItem di)
 {
     m_Items.Add(di);
     di.Owner = this;
     for (int i = 0; i < di.Termins.Count; i++)
     {
         if (di.Termins[i] is OntologyTermin)
         {
             (di.Termins[i] as OntologyTermin).Owner = di;
             m_Termins.Add(di.Termins[i]);
         }
         else
         {
             OntologyTermin nt = new OntologyTermin()
             {
                 Owner = di, Tag = di.Termins[i].Tag
             };
             di.Termins[i].CopyTo(nt);
             m_Termins.Add(nt);
             di.Termins[i] = nt;
         }
     }
 }