コード例 #1
0
 public void Update(rocnetnodeoptions element)
 {
     if (element.m_iotype.HasValue == true)
     {
         this.iotype = element.iotype;
     }
     if (element.m_rfid.HasValue == true)
     {
         this.rfid = element.rfid;
     }
     if (element.m_sack.HasValue == true)
     {
         this.sack = element.sack;
     }
     if (element.m_soundpath != null)
     {
         this.soundpath = element.soundpath;
     }
     if (element.m_soundplayer != null)
     {
         this.soundplayer = element.soundplayer;
     }
     if (element.m_usepb.HasValue == true)
     {
         this.usepb = element.usepb;
     }
 }
コード例 #2
0
        public static rocnetnodeoptions Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            rocnetnodeoptions _rocnetnodeoptions = new rocnetnodeoptions();

            _rocnetnodeoptions.m_rocrailClient = rocrailClient;
            _rocnetnodeoptions.m_iotype        = (int?)xml.Attribute("iotype");
            _rocnetnodeoptions.m_rfid          = (bool?)xml.Attribute("rfid");
            _rocnetnodeoptions.m_sack          = (bool?)xml.Attribute("sack");
            _rocnetnodeoptions.m_soundpath     = (string)xml.Attribute("soundpath");
            _rocnetnodeoptions.m_soundplayer   = (string)xml.Attribute("soundplayer");
            _rocnetnodeoptions.m_usepb         = (bool?)xml.Attribute("usepb");
            return(_rocnetnodeoptions);
        }