public void ReadXML(XmlReader reader) { reader.ReadStartElement(); while (reader.NodeType == XmlNodeType.Element) { switch (reader.Name) { case "CapturePathConfiguration": capturePathConfiguration.ReadXml(reader); break; case "DisplaySynchronizationFramerate": string str = reader.ReadElementContentAsString(); displaySynchronizationFramerate = double.Parse(str, CultureInfo.InvariantCulture); break; case "CaptureRecordingMode": recordingMode = (CaptureRecordingMode)Enum.Parse(typeof(CaptureRecordingMode), reader.ReadElementContentAsString()); break; case "SaveUncompressedVideo": saveUncompressedVideo = XmlHelper.ParseBoolean(reader.ReadElementContentAsString()); break; case "VerboseStats": verboseStats = XmlHelper.ParseBoolean(reader.ReadElementContentAsString()); break; case "MemoryBuffer": memoryBuffer = reader.ReadElementContentAsInt(); break; case "Cameras": ParseCameras(reader); break; case "DelayCompositeConfiguration": delayCompositeConfiguration.ReadXml(reader); break; case "PhotofinishConfiguration": photofinishConfiguration.ReadXml(reader); break; default: reader.ReadOuterXml(); break; } } reader.ReadEndElement(); }
public void ReadXML(XmlReader reader) { reader.ReadStartElement(); while (reader.NodeType == XmlNodeType.Element) { switch (reader.Name) { case "CapturePathConfiguration": capturePathConfiguration.ReadXml(reader); break; case "UseCameraSignalSynchronization": useCameraSignalSynchronization = XmlHelper.ParseBoolean(reader.ReadElementContentAsString()); break; case "DisplaySynchronizationFramerate": string str = reader.ReadElementContentAsString(); displaySynchronizationFramerate = double.Parse(str, CultureInfo.InvariantCulture); break; case "MemoryBuffer": memoryBuffer = reader.ReadElementContentAsInt(); break; case "Cameras": ParseCameras(reader); break; case "DelayCompositeConfiguration": delayCompositeConfiguration.ReadXml(reader); break; default: reader.ReadOuterXml(); break; } } reader.ReadEndElement(); }