Exemplo n.º 1
0
        public override XmlElement ToXML(XmlDocument xmldoc)
        {
            XmlElement xmlElem = xmldoc.CreateElement("Arguments");
            XmlElement subElem = xmldoc.CreateElement("Color");

            subElem.InnerText = _channel.ToString();
            xmlElem.AppendChild(subElem);
            subElem           = xmldoc.CreateElement("Step");
            subElem.InnerText = _brightchangevalue.ToString();
            xmlElem.AppendChild(subElem);
            subElem           = xmldoc.CreateElement("Bright");
            subElem.InnerText = _brightAdjustValue.ToString();
            xmlElem.AppendChild(subElem);
            subElem           = xmldoc.CreateElement("Contrast");
            subElem.InnerText = _contrastAdjustValue.ToString();
            xmlElem.AppendChild(subElem);
            return(xmlElem);
        }
Exemplo n.º 2
0
        public override XmlElement ToXML(XmlDocument xmldoc)
        {
            XmlElement xmlElem = xmldoc.CreateElement("Arguments");
            XmlElement subElem = xmldoc.CreateElement("Color");

            subElem.InnerText = _channel.ToString();
            xmlElem.AppendChild(subElem);
            subElem           = xmldoc.CreateElement("InputMin");
            subElem.InnerText = _inputMin.ToString();
            xmlElem.AppendChild(subElem);
            subElem           = xmldoc.CreateElement("InputMiddle");
            subElem.InnerText = _inputMiddle.ToString();
            xmlElem.AppendChild(subElem);
            subElem           = xmldoc.CreateElement("InputMax");
            subElem.InnerText = _inputMax.ToString();
            xmlElem.AppendChild(subElem);
            subElem           = xmldoc.CreateElement("OutputMin");
            subElem.InnerText = _outputMin.ToString();
            xmlElem.AppendChild(subElem);
            subElem           = xmldoc.CreateElement("OutputMax");
            subElem.InnerText = _outputMax.ToString();
            xmlElem.AppendChild(subElem);
            return(xmlElem);
        }