/// <summary> /// Сохранить конфигурацию компонента в XML-узле /// </summary> public override void SaveToXml(XmlElement xmlElem) { base.SaveToXml(xmlElem); xmlElem.AppendElem("BackColorOnHover", BackColorOnHover); xmlElem.AppendElem("BorderColorOnHover", BorderColorOnHover); xmlElem.AppendElem("ForeColorOnHover", ForeColorOnHover); xmlElem.AppendElem("UnderlineOnHover", UnderlineOnHover); xmlElem.AppendElem("CnlNums", ScadaUtils.IntCollectionToStr(CnlNums)); PopupSize.AppendElem(xmlElem, "PopupSize", PopupSize); xmlElem.AppendElem("Target", Target); xmlElem.AppendElem("Url", Url); xmlElem.AppendElem("ViewID", ViewID); }
/// <summary> /// Сохранить свойства документа схемы в XML-узле. /// </summary> public void SaveToXml(XmlElement xmlElem) { if (xmlElem == null) { throw new ArgumentNullException("xmlElem"); } Version = SchemeUtils.SchemeVersion; xmlElem.AppendElem("Version", Version); Size.AppendElem(xmlElem, "Size", Size); xmlElem.AppendElem("BackColor", BackColor); xmlElem.AppendElem("BackImageName", BackImageName); Font.AppendElem(xmlElem, "Font", Font); xmlElem.AppendElem("ForeColor", ForeColor); xmlElem.AppendElem("Title", Title); xmlElem.AppendElem("CnlFilter", ScadaUtils.IntCollectionToStr(CnlFilter)); }