Esempio n. 1
0
 public void Update(dcc232 element)
 {
     if (element.m_fastcvget.HasValue == true)
     {
         this.fastcvget = element.fastcvget;
     }
     if (element.m_inversedsr.HasValue == true)
     {
         this.inversedsr = element.inversedsr;
     }
     if (element.m_port != null)
     {
         this.port = element.port;
     }
     if (element.m_purge.HasValue == true)
     {
         this.purge = element.purge;
     }
     if (element.m_purgetime.HasValue == true)
     {
         this.purgetime = element.purgetime;
     }
     if (element.m_shortcut.HasValue == true)
     {
         this.shortcut = element.shortcut;
     }
     if (element.m_shortcutdelay.HasValue == true)
     {
         this.shortcutdelay = element.shortcutdelay;
     }
 }
Esempio n. 2
0
        public static dcc232 Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            dcc232 _dcc232 = new dcc232();

            _dcc232.m_rocrailClient = rocrailClient;
            _dcc232.m_fastcvget     = (bool?)xml.Attribute("fastcvget");
            _dcc232.m_inversedsr    = (bool?)xml.Attribute("inversedsr");
            _dcc232.m_port          = (string)xml.Attribute("port");
            _dcc232.m_purge         = (bool?)xml.Attribute("purge");
            _dcc232.m_purgetime     = (int?)xml.Attribute("purgetime");
            _dcc232.m_shortcut      = (bool?)xml.Attribute("shortcut");
            _dcc232.m_shortcutdelay = (int?)xml.Attribute("shortcutdelay");
            return(_dcc232);
        }