示例#1
0
        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;
        }
示例#2
0
        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);
            }
        }
示例#3
0
        void WriteAttribute(string format, params object[] arg)
        {
            ContainerIO cio = (ContainerIO)this.stkContainers.Peek();

            cio.WriteAttribute(format, arg);
        }
示例#4
0
        void WriteAttribute(string format)
        {
            ContainerIO cio = (ContainerIO)this.stkContainers.Peek();

            cio.WriteAttribute(format);
        }