예제 #1
0
 public void Update(fbevent element)
 {
     if (element.m_action != null)
     {
         this.action = element.action;
     }
     if (element.m_byroute != null)
     {
         this.byroute = element.byroute;
     }
     if (element.m_endpuls.HasValue == true)
     {
         this.endpuls = element.endpuls;
     }
     if (element.m_from != null)
     {
         this.@from = element.@from;
     }
     if (element.m_id != null)
     {
         this.id = element.id;
     }
     if (element.m_use_timer2.HasValue == true)
     {
         this.use_timer2 = element.use_timer2;
     }
 }
예제 #2
0
        public static fbevent Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            fbevent _fbevent = new fbevent();

            _fbevent.m_rocrailClient = rocrailClient;
            _fbevent.m_action        = (string)xml.Attribute("action");
            _fbevent.m_byroute       = (string)xml.Attribute("byroute");
            _fbevent.m_endpuls       = (bool?)xml.Attribute("endpuls");
            _fbevent.m_from          = (string)xml.Attribute("from");
            _fbevent.m_id            = (string)xml.Attribute("id");
            _fbevent.m_use_timer2    = (bool?)xml.Attribute("use_timer2");
            return(_fbevent);
        }