Пример #1
0
        public void buildXml(System.Xml.XmlWriter xmlWriter)
        {
            xmlWriter.WriteStartElement("referenceCalculationInfo");

            if (fixingInformationViewModel_ != null)
            {
                fixingInformationViewModel_.buildXml(xmlWriter);
            }

            foreach (var item in referenceCalculationViewModel_)
            {
                item.buildXml(xmlWriter);
            }

            if (operatorNDViewModel_ != null)
            {
                operatorNDViewModel_.buildXml(xmlWriter);
            }

            if (postCalculationViewModel_ != null)
            {
                postCalculationViewModel_.buildXml(xmlWriter);
            }

            if (refVariable_referenceValueViewModel_ != null)
            {
                refVariable_referenceValueViewModel_.buildXml(xmlWriter);
            }

            xmlWriter.WriteEndElement();
        }
Пример #2
0
        public override void buildXml(System.Xml.XmlWriter xmlWriter)
        {
            xmlWriter.WriteStartElement("returnCalculation");
            xmlWriter.WriteElementString("type", "complexNDReturnCal");
            xmlWriter.WriteStartElement("complexNDReturnCal");
            variableCalListViewModel_.buildXml(xmlWriter);

            operatorNDViewModel_.buildXml(xmlWriter);

            xmlWriter.WriteEndElement();
            xmlWriter.WriteEndElement();
        }
        public void buildXml(System.Xml.XmlWriter xmlWriter)
        {
            xmlWriter.WriteStartElement("returnCalculationInfo");

            foreach (var item in returnCalculationViewModel_)
            {
                item.buildXml(xmlWriter);
            }

            if (operatorNDViewModel_ != null)
            {
                operatorNDViewModel_.buildXml(xmlWriter);
            }

            xmlWriter.WriteEndElement();
        }