public static opendcc Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient) { opendcc _opendcc = new opendcc(); _opendcc.m_rocrailClient = rocrailClient; _opendcc.m_bidi = (bool?)xml.Attribute("bidi"); _opendcc.m_fastclock = (bool?)xml.Attribute("fastclock"); _opendcc.m_lib = (string)xml.Attribute("lib"); _opendcc.m_loccnfg = (bool?)xml.Attribute("loccnfg"); return(_opendcc); }
public void Update(opendcc element) { if (element.m_bidi.HasValue == true) { this.bidi = element.bidi; } if (element.m_fastclock.HasValue == true) { this.fastclock = element.fastclock; } if (element.m_lib != null) { this.lib = element.lib; } if (element.m_loccnfg.HasValue == true) { this.loccnfg = element.loccnfg; } }