public void ReadXml(XmlElement element) { var ps = new PointSaver(); ps.ReadXml(element); var ss = new SizeSaver(); ss.ReadXml(element); Rectangle = new Rectangle(ps.Point, ss.Size); }
public void WriteXml(XmlElement element) { var ps = new PointSaver { Point = Rectangle.Location }; ps.WriteXml(element); var ss = new SizeSaver { Size = Rectangle.Size }; ss.WriteXml(element); }
public void ReadXml(XmlElement element) { var ps = new PointSaver (); ps.ReadXml(element); var ss = new SizeSaver (); ss.ReadXml(element); Rectangle = new Rectangle(ps.Point, ss.Size); }