Example #1
0
 private static void smethod_2(XmlReader xmlReader_0, PlugIn plugIn_0, string string_1)
 {
     plugIn_0.dictionary_1 = PropertyUtil.smethod_1(xmlReader_0);
     while (xmlReader_0.Read())
     {
         if ((xmlReader_0.NodeType == XmlNodeType.Element) && xmlReader_0.IsStartElement())
         {
             string localName = xmlReader_0.LocalName;
             if (localName.Equals("Runtime"))
             {
                 if (!xmlReader_0.IsEmptyElement)
                 {
                     Class132.smethod_0(xmlReader_0, plugIn_0, string_1);
                 }
             }
             else
             {
                 if ((!localName.Equals("Auto") && !localName.Equals("Toolbar")) && (!localName.Equals("Menu") && !localName.Equals("Tree")))
                 {
                     throw new Exception2("根节点不支持的子节点:" + xmlReader_0.LocalName);
                 }
                 if (xmlReader_0.AttributeCount > 0)
                 {
                     throw new Exception2(localName + "节点不能设置属性");
                 }
                 string   str2   = dictionary_0[localName];
                 Class135 class2 = plugIn_0.method_8(str2);
                 if (!xmlReader_0.IsEmptyElement)
                 {
                     Class135.smethod_0(class2, xmlReader_0, localName);
                 }
             }
         }
     }
 }