예제 #1
0
            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);
            }
예제 #2
0
            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);
            }
예제 #3
0
			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);
			}
예제 #4
0
			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);
			}