Example #1
0
 public void WriteXml(System.Xml.XmlWriter writer)
 {
     writer.WriteAttributeString("Width", Width.ToString());
     writer.WriteAttributeString("Height", Height.ToString());
     writer.WriteAttributeString("Top", Top.ToString());
     writer.WriteAttributeString("Left", Left.ToString());
     writer.WriteAttributeString("TabIndex", TabIndex.ToString());
     writer.WriteAttributeString("ControlsCount", this.Controls.Count.ToString());
     for (int i = 0; i < Controls.Count; ++i)
     {
         System.Xml.Serialization.IXmlSerializable x =
             Controls[i] as System.Xml.Serialization.IXmlSerializable;
         writer.WriteStartElement(Controls[i].GetType().ToString());
         if (x != null)
         {
             x.WriteXml(writer);
         }
         writer.WriteEndElement();
     }
 }
Example #2
0
 protected System.Xml.Serialization.IXmlSerializable ReadSerializable(System.Xml.Serialization.IXmlSerializable serializable)
 {
     return(default(System.Xml.Serialization.IXmlSerializable));
 }
Example #3
0
 protected void WriteSerializable(System.Xml.Serialization.IXmlSerializable serializable, string name, string ns, bool isNullable, bool wrapped)
 {
 }