Пример #1
0
        public static hsi88 Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            hsi88 _hsi88 = new hsi88();

            _hsi88.m_rocrailClient = rocrailClient;
            _hsi88.m_fbleft        = (int?)xml.Attribute("fbleft");
            _hsi88.m_fbmiddle      = (int?)xml.Attribute("fbmiddle");
            _hsi88.m_fbright       = (int?)xml.Attribute("fbright");
            _hsi88.m_smooth        = (bool?)xml.Attribute("smooth");
            _hsi88.m_usb           = (bool?)xml.Attribute("usb");
            return(_hsi88);
        }
Пример #2
0
 public void Update(hsi88 element)
 {
     if (element.m_fbleft.HasValue == true)
     {
         this.fbleft = element.fbleft;
     }
     if (element.m_fbmiddle.HasValue == true)
     {
         this.fbmiddle = element.fbmiddle;
     }
     if (element.m_fbright.HasValue == true)
     {
         this.fbright = element.fbright;
     }
     if (element.m_smooth.HasValue == true)
     {
         this.smooth = element.smooth;
     }
     if (element.m_usb.HasValue == true)
     {
         this.usb = element.usb;
     }
 }