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); } } }
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); } } }