public static options Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient) { options _options = new options(); _options.m_rocrailClient = rocrailClient; _options.m_opsw = (string)xml.Attribute("opsw"); _options.m_store = (bool?)xml.Attribute("store"); return(_options); }
public void Update(options element) { if (element.m_opsw != null) { this.opsw = element.opsw; } if (element.m_store.HasValue == true) { this.store = element.store; } }