Example #1
0
 private void LoadContents(XmlNode iNode)
 {
     foreach (XmlNode lNode in iNode.ChildNodes)
     {
         RoyalGazetteContent lContent = RoyalGazetteContent.CreateContentObject(lNode.Name);
         if (lContent != null)
         {
             lContent.DoLoad(lNode);
             BoardMeetingTopic lTopic = new BoardMeetingTopic();
             lTopic.Topic     = lContent;
             lTopic.Effective = TambonHelper.GetAttributeOptionalDateTime(lNode, "effective");
             String s = TambonHelper.GetAttributeOptionalString(lNode, "type");
             if (String.IsNullOrEmpty(s))
             {
                 s = TambonHelper.GetAttributeOptionalString(lNode, "new");
             }
             if (!String.IsNullOrEmpty(s))
             {
                 lTopic.Type = (EntityType)Enum.Parse(typeof(EntityType), s);
             }
             lTopic.FindGazette();
             Contents.Add(lTopic);
         }
     }
 }
Example #2
0
 protected void LoadContents(XmlNode iNode)
 {
     foreach (XmlNode lNode in iNode.ChildNodes)
     {
         RoyalGazetteContent lContent = RoyalGazetteContent.CreateContentObject(lNode.Name);
         if (lContent != null)
         {
             lContent.DoLoad(lNode);
             Content.Add(lContent);
         }
     }
 }
Example #3
0
 virtual internal void DoLoad(XmlNode iNode)
 {
     if (iNode != null)
     {
         Geocode       = TambonHelper.GetAttributeOptionalInt(iNode, "geocode", 0);
         TambonGeocode = TambonHelper.GetAttributeOptionalInt(iNode, "tambon", 0);
         Name          = TambonHelper.GetAttributeOptionalString(iNode, "name");
         English       = TambonHelper.GetAttributeOptionalString(iNode, "english");
         Owner         = TambonHelper.GetAttributeOptionalInt(iNode, "owner", 0);
         foreach (XmlNode lNode in iNode.ChildNodes)
         {
             var lContent = RoyalGazetteContent.CreateContentObject(lNode.Name);
             if (lContent != null)
             {
                 lContent.DoLoad(lNode);
                 mSubEntries.Add(lContent);
             }
         }
     }
 }