Exemple #1
0
        public static dipvalue Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient)
        {
            dipvalue _dipvalue = new dipvalue();

            _dipvalue.m_rocrailClient = rocrailClient;
            _dipvalue.m_info          = (string)xml.Attribute("info");
            _dipvalue.m_name          = (string)xml.Attribute("name");
            _dipvalue.m_type          = (int?)xml.Attribute("type");
            _dipvalue.m_value         = (int?)xml.Attribute("value");
            return(_dipvalue);
        }
Exemple #2
0
 public void Update(dipvalue element)
 {
     if (element.m_info != null)
     {
         this.info = element.info;
     }
     if (element.m_name != null)
     {
         this.name = element.name;
     }
     if (element.m_type.HasValue == true)
     {
         this.type = element.type;
     }
     if (element.m_value.HasValue == true)
     {
         this.@value = element.@value;
     }
 }