Exemplo n.º 1
0
 public override void ParseParentKey(ParentKey parent)
 {
     base.keyValues = parent.GetKeyValues();
     foreach(ParentKey child in parent.GetChildren())
     {
         switch (child.GetKey())
         {
             case "group_source_bindings":
                 GroupSourceBinding g = new GroupSourceBinding();
                 g.ParseParentKey(child);
                 groupSourceBindings.Add(g);
                 break;
             case "switch_bindings":
                 SwitchBinding sb = new SwitchBinding();
                 sb.ParseParentKey(child);
                 switchBindings.Add(sb);
                 break;
             case "settings":
                 Setting s = new Setting();
                 s.ParseParentKey(child);
                 settings.Add(s);
                 break;
         }
     }
 }
Exemplo n.º 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;
         }
     }
 }