Ejemplo n.º 1
0
        public static powercmd Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            powercmd _powercmd = new powercmd();

            _powercmd.m_rocrailClient = rocrailClient;
            _powercmd.m_cmd           = (string)xml.Attribute("cmd");
            _powercmd.m_id            = (string)xml.Attribute("id");
            _powercmd.m_iid           = (string)xml.Attribute("iid");
            return(_powercmd);
        }
Ejemplo n.º 2
0
 public void Update(powercmd element)
 {
     if (element.m_cmd != null)
     {
         this.cmd = element.cmd;
     }
     if (element.m_id != null)
     {
         this.id = element.id;
     }
     if (element.m_iid != null)
     {
         this.iid = element.iid;
     }
 }