public override int GetHashCode() { StringBuilder builder = new StringBuilder(); if (FontFamily != null) { builder.Append(FontFamily.ToString()); } builder.Append(FontStyle.ToString()); builder.Append(FontStretch.ToString()); builder.Append(((ushort)FontWeight.Weight).ToString()); builder.Append(WordWrap.ToString()); builder.Append(MaximumSize.ToString()); return(builder.ToString().GetHashCode()); }
internal override void BuildNodes(System.Xml.XmlElement parent, System.Xml.XmlDocument doc) { XmlElement el = doc.CreateElement("DisplayWindow"); XmlHelper.AppendAttribute(el, doc, "name", Name); XmlHelper.AppendAttribute(el, doc, "preferred_size", Size.ToString()); XmlHelper.AppendAttribute(el, doc, "minimum_size", MinimumSize.ToString()); XmlHelper.AppendAttribute(el, doc, "maximum_size", MaximumSize.ToString()); XmlHelper.AppendAttribute(el, doc, "allow_resize", AllowResize); XmlHelper.AppendAttribute(el, doc, "full_screen", FullScreen); XmlHelper.AppendAttribute(el, doc, "bpp", Bpp); el.InnerText = Title; parent.AppendChild(el); }