/// <summary> /// Сохранить конфигурацию компонента в XML-узле /// </summary> public virtual void SaveToXml(XmlElement xmlElem) { if (xmlElem == null) { throw new ArgumentNullException("xmlElem"); } xmlElem.AppendElem("ID", ID); xmlElem.AppendElem("Name", Name); Point.AppendElem(xmlElem, "Location", Location); Size.AppendElem(xmlElem, "Size", Size); xmlElem.AppendElem("ZIndex", ZIndex); }
/// <summary> /// Сохранить конфигурацию компонента в XML-узле /// </summary> public override void SaveToXml(XmlElement xmlElem) { base.SaveToXml(xmlElem); xmlElem.AppendElem("ForeColor", ForeColor); Font.AppendElem(xmlElem, "Font", Font); xmlElem.AppendElem("ImageName", ImageName); Size.AppendElem(xmlElem, "ImageSize", ImageSize); xmlElem.AppendElem("Text", Text); xmlElem.AppendElem("Action", Action); xmlElem.AppendElem("BoundProperty", BoundProperty); xmlElem.AppendElem("InCnlNum", InCnlNum); xmlElem.AppendElem("CtrlCnlNum", CtrlCnlNum); }
/// <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)); }
/// <summary> /// Сохранить конфигурацию компонента в XML-узле /// </summary> public virtual void SaveToXml(XmlElement xmlElem) { if (xmlElem == null) { throw new ArgumentNullException("xmlElem"); } xmlElem.AppendElem("BackColor", BackColor); xmlElem.AppendElem("BorderColor", BorderColor); xmlElem.AppendElem("BorderWidth", BorderWidth); xmlElem.AppendElem("ToolTip", ToolTip); xmlElem.AppendElem("ID", ID); xmlElem.AppendElem("Name", Name); Point.AppendElem(xmlElem, "Location", Location); Size.AppendElem(xmlElem, "Size", Size); xmlElem.AppendElem("ZIndex", ZIndex); }