Exemple #1
0
        public virtual void ReadXml(XmlElement element)
        {
            AutoScroll = element.GetBoolAttribute("autoscroll") ?? true;
            var formatsElement = (XmlElement)element.SelectSingleNode("formats");

            if (formatsElement != null)
            {
                formats.ReadXml(formatsElement);
            }
            var zoomInfoElement = (XmlElement)element.SelectSingleNode("zoomInfo");

            if (zoomInfoElement != null)
            {
                zoomInfo.ReadXml(zoomInfoElement);
            }
            var previewZoomInfoElement = (XmlElement)element.SelectSingleNode("previewZoomInfo");

            if (previewZoomInfoElement != null)
            {
                previewZoomInfo.ReadXml(previewZoomInfoElement);
            }

            // TODO - Add: previewVisibleRip
            // TODO - Add: previewVisibleTextModeNonEdit
        }
Exemple #2
0
        public virtual void ReadXml(XmlElement element)
        {
            AutoScroll = element.GetBoolAttribute("autoscroll") ?? true;
            var formatsElement = (XmlElement)element.SelectSingleNode("formats");

            if (formatsElement != null)
            {
                formats.ReadXml(formatsElement);
            }
            var zoomInfoElement = (XmlElement)element.SelectSingleNode("zoomInfo");

            if (zoomInfoElement != null)
            {
                zoomInfo.ReadXml(zoomInfoElement);
            }
        }