private void InternalMergeFormChanges(XmlTextWriter xml) { if (xml == null) { throw new ArgumentNullException("xml"); } ReportDesignerWriter rpd = new ReportDesignerWriter(); XmlHelper.CreatePropperDocument(xml); foreach (IComponent component in viewContent.Host.Container.Components) { if (!(component is Control)) { rpd.Save(component,xml); } } xml.WriteEndElement(); xml.WriteStartElement("SectionCollection"); // we look only for Sections foreach (IComponent component in viewContent.Host.Container.Components) { BaseSection b = component as BaseSection; if (b != null) { rpd.Save(component,xml); } } //SectionCollection xml.WriteEndElement(); //Reportmodel xml.WriteEndElement(); xml.WriteEndDocument(); xml.Close(); }
private void InternalMergeFormChanges(XmlTextWriter xml) { if (xml == null) { throw new ArgumentNullException("xml"); } Console.WriteLine("ReportDesignerGenerator:internalMergeFormChanges"); ReportDesignerWriter rpd = new ReportDesignerWriter(); XmlHelper.CreatePropperDocument(xml); foreach (IComponent component in viewContent.Host.Container.Components) { if (!(component is Control)) { rpd.Save(component, xml); } } xml.WriteEndElement(); xml.WriteStartElement("SectionCollection"); // we look only for Sections foreach (IComponent component in viewContent.Host.Container.Components) { BaseSection b = component as BaseSection; if (b != null) { Console.WriteLine(b.BackColor.ToString()); rpd.Save(component, xml); } } //SectionCollection xml.WriteEndElement(); //Reportmodel xml.WriteEndElement(); xml.WriteEndDocument(); xml.Close(); }