Beispiel #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;
         }
     }
 }
Beispiel #2
0
 public override void ParseParentKey(ParentKey parent)
 {
     foreach(ParentKey child in parent.GetChildren())
     {
         Binding b = new Binding();
         b.ParseParentKey(child);
         bindings.Add(b);
     }
 }
 public override void ParseParentKey(ParentKey parent)
 {
     base.keyValues = parent.GetKeyValues();
     foreach (ParentKey child in parent.GetChildren())
     {
         switch (child.GetKey())
         {
             case "group":
                 Group group = new Group();
                 group.ParseParentKey(child);
                 groups.Add(group);
                 break;
             case "preset":
                 Preset preset = new Preset();
                 preset.ParseParentKey(child);
                 presets.Add(preset);
                 break;
         }
     }
 }
Beispiel #4
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;
         }
     }
 }