Ejemplo n.º 1
0
 public void Update(custom element)
 {
     if (element.m_arg1 != null)
     {
         this.arg1 = element.arg1;
     }
     if (element.m_arg2 != null)
     {
         this.arg2 = element.arg2;
     }
     if (element.m_arg3 != null)
     {
         this.arg3 = element.arg3;
     }
     if (element.m_arg4 != null)
     {
         this.arg4 = element.arg4;
     }
     if (element.m_arg5 != null)
     {
         this.arg5 = element.arg5;
     }
     if (element.m_arg6 != null)
     {
         this.arg6 = element.arg6;
     }
     if (element.m_cmd != null)
     {
         this.cmd = element.cmd;
     }
     if (element.m_iid != null)
     {
         this.iid = element.iid;
     }
 }
Ejemplo n.º 2
0
        public static custom Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            custom _custom = new custom();

            _custom.m_rocrailClient = rocrailClient;
            _custom.m_arg1          = (string)xml.Attribute("arg1");
            _custom.m_arg2          = (string)xml.Attribute("arg2");
            _custom.m_arg3          = (string)xml.Attribute("arg3");
            _custom.m_arg4          = (string)xml.Attribute("arg4");
            _custom.m_arg5          = (string)xml.Attribute("arg5");
            _custom.m_arg6          = (string)xml.Attribute("arg6");
            _custom.m_cmd           = (string)xml.Attribute("cmd");
            _custom.m_iid           = (string)xml.Attribute("iid");
            return(_custom);
        }