Exemple #1
0
        internal static BoardMeetingEntry Load(XmlNode node)
        {
            BoardMeetingEntry result = null;

            if (node != null && node.Name.Equals("boardmeeting"))
            {
                result = new BoardMeetingEntry();
                String url = TambonHelper.GetAttributeOptionalString(node, "url");
                if (!String.IsNullOrEmpty(url))
                {
                    result.WebLink = new Uri(url);
                }
                result.Date          = TambonHelper.GetAttributeDateTime(node, "date");
                result.BoardNumber   = TambonHelper.GetAttribute(node, "board");
                result.MeetingNumber = Convert.ToInt32(TambonHelper.GetAttribute(node, "number"));

                result.LoadContents(node);
            }

            return(result);
        }
        internal static BoardMeetingEntry Load(XmlNode node)
        {
            BoardMeetingEntry result = null;

            if ( node != null && node.Name.Equals("boardmeeting") )
            {
                result = new BoardMeetingEntry();
                String url = TambonHelper.GetAttributeOptionalString(node, "url");
                if ( !String.IsNullOrEmpty(url) )
                {
                    result.WebLink = new Uri(url);
                }
                result.Date = TambonHelper.GetAttributeDateTime(node, "date");
                result.BoardNumber = TambonHelper.GetAttribute(node, "board");
                result.MeetingNumber = Convert.ToInt32(TambonHelper.GetAttribute(node, "number"));

                result.LoadContents(node);
            }

            return result;
        }