public static dipgroup Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient) { dipgroup _dipgroup = new dipgroup(); _dipgroup.m_rocrailClient = rocrailClient; _dipgroup.m_caption = (string)xml.Attribute("caption"); _dipgroup.m_mask = (int?)xml.Attribute("mask"); _dipgroup.m_ori = (int?)xml.Attribute("ori"); _dipgroup.m_spacing = (int?)xml.Attribute("spacing"); _dipgroup.m_type = (int?)xml.Attribute("type"); Definitions.Tools.ParseList <dipvalue>(_dipgroup.m_dipvaluelist, xml, "dipvalue", dipvalue.Parse, rocrailClient); return(_dipgroup); }
public void Update(dipgroup element) { if (element.m_caption != null) { this.caption = element.caption; } if (element.m_mask.HasValue == true) { this.mask = element.mask; } if (element.m_ori.HasValue == true) { this.ori = element.ori; } if (element.m_spacing.HasValue == true) { this.spacing = element.spacing; } if (element.m_type.HasValue == true) { this.type = element.type; } this.dipvaluelist = element.dipvaluelist; }