Ejemplo n.º 1
0
 private static void CalcParents(cOffset Parent, List <cOffset> Childs)
 {
     foreach (cOffset o in Childs)
     {
         o.Parent = Parent;
         CalcParents(o, o.Children);
     }
 }
Ejemplo n.º 2
0
 public cOffset(cOffset Source)
 {
     Offset      = Source.Offset;
     Parent      = Source.Parent;
     Structure   = Source.Structure;
     description = "copy from" + Source.description;
     Children    = new List <cOffset>();
     foreach (cOffset c in Source.Children)
     {
         Children.Add(new cOffset(c));
     }
 }