Ejemplo n.º 1
0
        public virtual void SaveLayout(string fileName)
        {
            ControlXmlSerializer controlXmlSerializer = new ControlXmlSerializer(this.XmlSerializationInfo);

            using (XmlTextWriter xmlTextWriter = new XmlTextWriter(fileName, Encoding.UTF8))
            {
                xmlTextWriter.Formatting = Formatting.Indented;
                xmlTextWriter.WriteStartElement(nameof(RadRadialGauge));
                controlXmlSerializer.WriteObjectElement((XmlWriter)xmlTextWriter, (object)this);
            }
        }
Ejemplo n.º 2
0
        public virtual void SaveLayout(Stream stream)
        {
            ControlXmlSerializer controlXmlSerializer = new ControlXmlSerializer(this.XmlSerializationInfo);
            StreamWriter         streamWriter         = new StreamWriter(stream);
            XmlTextWriter        xmlTextWriter        = new XmlTextWriter((TextWriter)streamWriter);

            xmlTextWriter.WriteStartElement(nameof(RadRadialGauge));
            controlXmlSerializer.WriteObjectElement((XmlWriter)xmlTextWriter, (object)this);
            xmlTextWriter.WriteEndElement();
            streamWriter.Flush();
        }