コード例 #1
0
ファイル: ParserManager.cs プロジェクト: HiKami172/CSharpLab4
 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;
 }