Beispiel #1
0
 public override void ParseParentKey(ParentKey parent)
 {
     foreach(ParentKey child in parent.GetChildren())
     {
         Binding b = new Binding();
         b.ParseParentKey(child);
         bindings.Add(b);
     }
 }
Beispiel #2
0
 public override void ParseParentKey(ParentKey parent)
 {
     base.keyValues = parent.GetKeyValues();
     foreach (ParentKey child in parent.GetChildren())
     {
         switch (child.GetKey())
         {
             case "bindings":
                 Binding b = new Binding();
                 b.ParseParentKey(child);
                 bindings.Add(b);
                 break;
             case "settings":
                 Setting s = new Setting();
                 s.ParseParentKey(child);
                 settings.Add(s);
                 break;
         }
     }
 }