Exemplo n.º 1
0
 private void ParseFirstType(XMLDocument xmlDoc)
 {
     TargetPath = xmlDoc.Root.AttributeValue <string>("TargetPath");
     SourcePath = xmlDoc.Root.AttributeValue <string>("SourcePath");
     foreach (var mod in xmlDoc.Root.Children().Find(XMLNode.Find("Mods")).GetDictionary())
     {
         Mods[(EncryptCompressMode)Enum.Parse(typeof(EncryptCompressMode), mod.Key)] = mod.Value;
     }
     IsParsed = true;
 }