コード例 #1
0
        public Monitor DeserializeMonitor(XmlReader xmlReader)
        {
            xmlReader.ReadStartElement("Monitor");
            Monitor display = (Monitor)CreateNewObject("Monitor", "");

            display.ReadXml(xmlReader);
            DeserializeControls(display.Children, xmlReader);
            xmlReader.ReadEndElement();

            return(display);
        }
コード例 #2
0
ファイル: HeliosSerializer.cs プロジェクト: appsou/Helios
        public IEnumerable <string> DeserializeMonitor(MonitorCollection destination, XmlReader xmlReader, int monitorNumber)
        {
            xmlReader.ReadStartElement("Monitor");
            Monitor display = (Monitor)CreateNewObject("Monitor", "");

            display.ReadXml(xmlReader);
            foreach (string progress in DeserializeControls(display.Children, xmlReader))
            {
                yield return(progress);
            }
            xmlReader.ReadEndElement();
            display.Name = "Monitor " + monitorNumber;
            destination.Add(display);
            yield return($"loaded {display.Name}");
        }