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); }
public void ReadXml (XmlElement element) { this.ClientSize = element.ReadChildSizeXml ("clientSize") ?? new Size (800, 600); element.ReadChildXml ("top", top); }