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 "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;
         }
     }
 }
Exemplo n.º 3
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;
         }
     }
 }
Exemplo n.º 4
0
 public override void ParseParentKey(ParentKey parent)
 {
     setting = parent.GetKeyValues();
 }
Exemplo n.º 5
0
 public override void ParseParentKey(ParentKey parent)
 {
     base.keyValues = parent.GetKeyValues();
 }