public static webcam Parse(System.Xml.Linq.XElement xml, CRocrailClient rocrailClient) { webcam _webcam = new webcam(); _webcam.m_rocrailClient = rocrailClient; _webcam.m_imagefile = (string)xml.Attribute("imagefile"); _webcam.m_title = (string)xml.Attribute("title"); return(_webcam); }
public void Update(webcam element) { if (element.m_imagefile != null) { this.imagefile = element.imagefile; } if (element.m_title != null) { this.title = element.title; } }