Ejemplo n.º 1
0
        public virtual void LoadLayout(XmlReader xmlReader)
        {
            ControlXmlSerializer controlXmlSerializer = new ControlXmlSerializer(this.XmlSerializationInfo);

            xmlReader.Read();
            controlXmlSerializer.ReadObjectElement(xmlReader, (object)this);
        }
Ejemplo n.º 2
0
        public virtual void LoadLayout(XmlReader xmlReader, InstanceFactory factory)
        {
            this.ResetFields();
            ControlXmlSerializer controlXmlSerializer = new ControlXmlSerializer(this.XmlSerializationInfo);

            controlXmlSerializer.InstanceFactory = factory;
            xmlReader.Read();
            this.CleanupComponents(factory);
            controlXmlSerializer.ReadObjectElement(xmlReader, (object)this);
        }