Exemplo n.º 1
0
 /// <summary>
 /// Invoked when the child items need to be loaded on demand.
 /// Subclasses can override this to populate the Children collection.
 /// </summary>
 protected virtual void LoadChildren()
 {
     foreach (var item in new TemasModel().GetTemasByDemand(this, this.Materia))
     {
         SubTemas.Add(item);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Invoked when the child items need to be loaded on demand.
 /// Subclasses can override this to populate the Children collection.
 /// </summary>
 protected virtual void LoadChildren()
 {
     //SubTemas = this.GetTemas(this, this.Materia);
     foreach (Temas item in new TemasModel(this.idProducto).GetTemas(this))
     {
         SubTemas.Add(item);
     }
 }
Exemplo n.º 3
0
 protected virtual void AddSubtema(Temas child)
 {
     child.Parent = this;
     SubTemas.Add(child);
 }
Exemplo n.º 4
0
 public virtual void AddSubtema(Temas child)
 {
     child.Parent = this;
     SubTemas.Add(child);
 }