예제 #1
0
        public static seltabpos Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            seltabpos _seltabpos = new seltabpos();

            _seltabpos.m_rocrailClient = rocrailClient;
            _seltabpos.m_bkid          = (string)xml.Attribute("bkid");
            _seltabpos.m_desc          = (string)xml.Attribute("desc");
            _seltabpos.m_nr            = (int?)xml.Attribute("nr");
            _seltabpos.m_s1id          = (string)xml.Attribute("s1id");
            _seltabpos.m_s2id          = (string)xml.Attribute("s2id");
            return(_seltabpos);
        }
예제 #2
0
 public void Update(seltabpos element)
 {
     if (element.m_bkid != null)
     {
         this.bkid = element.bkid;
     }
     if (element.m_desc != null)
     {
         this.desc = element.desc;
     }
     if (element.m_nr.HasValue == true)
     {
         this.nr = element.nr;
     }
     if (element.m_s1id != null)
     {
         this.s1id = element.s1id;
     }
     if (element.m_s2id != null)
     {
         this.s2id = element.s2id;
     }
 }