Esempio n. 1
0
 private void ParseSecondType(XMLDocument xmlDoc)
 {
     TargetPath = xmlDoc.Root.Children()[0].AttributeValue <string>("TargetPath");
     SourcePath = xmlDoc.Root.Children()[0].AttributeValue <string>("SourcePath");
     foreach (var mod in xmlDoc.Root.Children()[1].GetDictionary())
     {
         Mods[(EncryptCompressMode)Enum.Parse(typeof(EncryptCompressMode), mod.Key)] = mod.Value;
     }
     IsParsed = true;
 }
Esempio n. 2
0
 private void TryParse(XMLDocument xmlDoc)
 {
     try
     {
         ParseFirstType(xmlDoc);
     }
     catch (Exception)
     {
         ParseSecondType(xmlDoc);
     }
 }