示例#1
0
        /// <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);
        }
示例#2
0
        /// <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);
        }
示例#3
0
        /// <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));
        }
示例#4
0
        /// <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);
        }