예제 #1
0
 public UpdateSchema(XmlDocument xml)
 {
     foreach(XmlNode el in xml.DocumentElement.ChildNodes)
     {
         if (SharedUpdateConstants.UPDATER_PROGRAM_XML_ELEMENT.Equals(el.Name))
         {
             AutoUpdate = new Schema.SoftwareUpdate(el as XmlElement);
             AllUpdateObjects.Add(AutoUpdate);
         }
         else if ("Update".Equals(el.Name))
         {
             Tangra3 = new Schema.SoftwareMainUpdate(el as XmlElement);
             AllUpdateObjects.Add(Tangra3);
         }
         else if ("ModuleUpdate".Equals(el.Name))
             AllUpdateObjects.Add(new Schema.ModuleUpdate(el as XmlElement));
     }
 }
예제 #2
0
 public UpdateSchema(XmlDocument xml)
 {
     foreach (XmlNode el in xml.DocumentElement.ChildNodes)
     {
         if (SharedUpdateConstants.UPDATER_PROGRAM_XML_ELEMENT.Equals(el.Name))
         {
             AutoUpdate = new Schema.SoftwareUpdate(el as XmlElement);
             AllUpdateObjects.Add(AutoUpdate);
         }
         else if ("Update".Equals(el.Name))
         {
             Tangra3 = new Schema.SoftwareMainUpdate(el as XmlElement);
             AllUpdateObjects.Add(Tangra3);
         }
         else if ("ModuleUpdate".Equals(el.Name))
         {
             AllUpdateObjects.Add(new Schema.ModuleUpdate(el as XmlElement));
         }
     }
 }