示例#1
0
        public static description Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            description _description = new description();

            _description.m_rocrailClient = rocrailClient;
            _description.m_lang          = (string)xml.Attribute("lang");
            _description.m_text          = (string)xml.Attribute("text");
            _description.m_url           = (string)xml.Attribute("url");
            return(_description);
        }
示例#2
0
 public void Update(description element)
 {
     if (element.m_lang != null)
     {
         this.lang = element.lang;
     }
     if (element.m_text != null)
     {
         this.text = element.text;
     }
     if (element.m_url != null)
     {
         this.url = element.url;
     }
 }