public void End() { ContainerIO cio = (ContainerIO)stkContainers.Pop(); // this pop should empty the stack cio.WriteAttribute(">"); tw.WriteLine(cio.attribute_sb); tw.WriteLine(cio.subelement_sb); tw.WriteLine("</" + r.ReportDefinition.DataElementName + ">"); return; }
void PopContainer(string name) { ContainerIO cio = (ContainerIO)this.stkContainers.Pop(); if (cio.bEmpty) { return; } cio.WriteAttribute(">"); WriteElementLine(cio.attribute_sb.ToString()); WriteElementLine(cio.subelement_sb.ToString()); if (name != null) { WriteElementLine("</{0}>", name); } }
void WriteAttribute(string format, params object[] arg) { ContainerIO cio = (ContainerIO)this.stkContainers.Peek(); cio.WriteAttribute(format, arg); }
void WriteAttribute(string format) { ContainerIO cio = (ContainerIO)this.stkContainers.Peek(); cio.WriteAttribute(format); }