예제 #1
0
 public void Update(srcp element)
 {
     if (element.m_cmdport.HasValue == true)
     {
         this.cmdport = element.cmdport;
     }
     if (element.m_srcpbusFB_i8255.HasValue == true)
     {
         this.srcpbusFB_i8255 = element.srcpbusFB_i8255;
     }
     if (element.m_srcpbusFB_m6051.HasValue == true)
     {
         this.srcpbusFB_m6051 = element.srcpbusFB_m6051;
     }
     if (element.m_srcpbusFB_s88.HasValue == true)
     {
         this.srcpbusFB_s88 = element.srcpbusFB_s88;
     }
     if (element.m_srcpbusGA_m.HasValue == true)
     {
         this.srcpbusGA_m = element.srcpbusGA_m;
     }
     if (element.m_srcpbusGA_n.HasValue == true)
     {
         this.srcpbusGA_n = element.srcpbusGA_n;
     }
     if (element.m_srcpbusGA_ps.HasValue == true)
     {
         this.srcpbusGA_ps = element.srcpbusGA_ps;
     }
     if (element.m_srcpbusGL_m.HasValue == true)
     {
         this.srcpbusGL_m = element.srcpbusGL_m;
     }
     if (element.m_srcpbusGL_nl.HasValue == true)
     {
         this.srcpbusGL_nl = element.srcpbusGL_nl;
     }
     if (element.m_srcpbusGL_ns.HasValue == true)
     {
         this.srcpbusGL_ns = element.srcpbusGL_ns;
     }
     if (element.m_srcpbusGL_ps.HasValue == true)
     {
         this.srcpbusGL_ps = element.srcpbusGL_ps;
     }
     if (element.m_srcpbus_server.HasValue == true)
     {
         this.srcpbus_server = element.srcpbus_server;
     }
 }
예제 #2
0
        public static srcp Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            srcp _srcp = new srcp();

            _srcp.m_rocrailClient   = rocrailClient;
            _srcp.m_cmdport         = (int?)xml.Attribute("cmdport");
            _srcp.m_srcpbusFB_i8255 = (int?)xml.Attribute("srcpbusFB_i8255");
            _srcp.m_srcpbusFB_m6051 = (int?)xml.Attribute("srcpbusFB_m6051");
            _srcp.m_srcpbusFB_s88   = (int?)xml.Attribute("srcpbusFB_s88");
            _srcp.m_srcpbusGA_m     = (int?)xml.Attribute("srcpbusGA_m");
            _srcp.m_srcpbusGA_n     = (int?)xml.Attribute("srcpbusGA_n");
            _srcp.m_srcpbusGA_ps    = (int?)xml.Attribute("srcpbusGA_ps");
            _srcp.m_srcpbusGL_m     = (int?)xml.Attribute("srcpbusGL_m");
            _srcp.m_srcpbusGL_nl    = (int?)xml.Attribute("srcpbusGL_nl");
            _srcp.m_srcpbusGL_ns    = (int?)xml.Attribute("srcpbusGL_ns");
            _srcp.m_srcpbusGL_ps    = (int?)xml.Attribute("srcpbusGL_ps");
            _srcp.m_srcpbus_server  = (int?)xml.Attribute("srcpbus_server");
            return(_srcp);
        }