示例#1
0
 public void Update(occ element)
 {
     if (element.m_auto.HasValue == true)
     {
         this.auto = element.auto;
     }
     if (element.m_bkid != null)
     {
         this.bkid = element.bkid;
     }
     if (element.m_blockenterside.HasValue == true)
     {
         this.blockenterside = element.blockenterside;
     }
     if (element.m_closed.HasValue == true)
     {
         this.closed = element.closed;
     }
     if (element.m_lcid != null)
     {
         this.lcid = element.lcid;
     }
     if (element.m_placing.HasValue == true)
     {
         this.placing = element.placing;
     }
     if (element.m_scid != null)
     {
         this.scid = element.scid;
     }
     if (element.m_secid != null)
     {
         this.secid = element.secid;
     }
 }
示例#2
0
        public static occ Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            occ _occ = new occ();

            _occ.m_rocrailClient  = rocrailClient;
            _occ.m_auto           = (bool?)xml.Attribute("auto");
            _occ.m_bkid           = (string)xml.Attribute("bkid");
            _occ.m_blockenterside = (int?)xml.Attribute("blockenterside");
            _occ.m_closed         = (bool?)xml.Attribute("closed");
            _occ.m_lcid           = (string)xml.Attribute("lcid");
            _occ.m_placing        = (int?)xml.Attribute("placing");
            _occ.m_scid           = (string)xml.Attribute("scid");
            _occ.m_secid          = (string)xml.Attribute("secid");
            return(_occ);
        }