示例#1
0
        public void ReadXml(XmlElement element)
        {
            var bounds = element.ReadChildRectangleXml("bounds");
            if (bounds != null)
                this.Bounds = bounds.Value;
            else
            {
                var clientSize = element.ReadChildSizeXml("clientSize");
                if (clientSize != null)
                    this.ClientSize = clientSize.Value;
            }
            bool maximized = element.GetBoolAttribute("maximized") ?? false;
            if (maximized)
            {
                this.Maximize();
            }

            element.ReadChildXml("top", top);
        }
示例#2
0
		public void ReadXml (XmlElement element)
		{
			this.ClientSize = element.ReadChildSizeXml ("clientSize") ?? new Size (800, 600);
			element.ReadChildXml ("top", top);
		}