예제 #1
0
 private static void LoadLayoutDataStore(XmlNodeList elemList, ILayoutDataStore store, bool noCheckCode)
 {
     foreach (XmlElement e in elemList)
     {
         if (e.GetAttribute(NameElement) == store.Name)
         {
             if (e.GetElementsByTagName(CheckElement)[0].InnerText == store.CheckCode || noCheckCode)
             {
                 XmlNode childNode = e.GetElementsByTagName(DataElement)[0].ChildNodes[0];
                 if (childNode is XmlCDataSection)
                 {
                     XmlCDataSection cdataSection = childNode as XmlCDataSection;
                     store.Load(cdataSection.Value);
                 }
                 else
                     store.Load(e.GetElementsByTagName(DataElement)[0].InnerText);
             }
             break;
         }
     }
 }