public static fbmods Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient) { fbmods _fbmods = new fbmods(); _fbmods.m_rocrailClient = rocrailClient; _fbmods.m_bus = (int?)xml.Attribute("bus"); _fbmods.m_modules = (string)xml.Attribute("modules"); return(_fbmods); }
public void Update(fbmods element) { if (element.m_bus.HasValue == true) { this.bus = element.bus; } if (element.m_modules != null) { this.modules = element.modules; } }