Example #1
0
 public VariableGroupXml SaveToXml()
 {
     VariableGroupXml xml = new VariableGroupXml();
     xml.Name = Name;
     xml.ShortName = ShortName;
     xml.Variables = this.Variables.Select(x => x.SaveToFile()).ToArray();
     return xml;
 }
Example #2
0
 public VariableContainerXml()
 {
     Groups = new VariableGroupXml[] {};
 }
Example #3
0
 public void LoadFromXml(VariableGroupXml xml)
 {
     this.Name = xml.Name;
     this.ShortName = xml.ShortName;
     Variables.Clear();
     foreach (VariableXml variable in xml.Variables)
     {
         Variable var = new Variable();
         var.LoadFromXml(variable);
         var.OnDelete += this.DeleteVariable;
         this.Variables.Add(var);
     }
 }