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

            _operator.m_rocrailClient = rocrailClient;
            _operator.m_carids        = (string)xml.Attribute("carids");
            _operator.m_cmd           = (string)xml.Attribute("cmd");
            _operator.m_id            = (string)xml.Attribute("id");
            _operator.m_lcid          = (string)xml.Attribute("lcid");
            return(_operator);
        }
Ejemplo n.º 2
0
 public void Update(@operator element)
 {
     if (element.m_carids != null)
     {
         this.carids = element.carids;
     }
     if (element.m_cmd != null)
     {
         this.cmd = element.cmd;
     }
     if (element.m_id != null)
     {
         this.id = element.id;
     }
     if (element.m_lcid != null)
     {
         this.lcid = element.lcid;
     }
 }