Exemplo n.º 1
0
        private void InitInvoice(Order o)
        {
            _invoiceElements = new List <InvoiceElement>();
            HeaderElement header = new HeaderElement(InitHeader());

            _invoiceElements.Add(header);
            OrderElement orderElemt = new OrderElement(o);

            _invoiceElements.Add(orderElemt);
            FooterElement footElement = new FooterElement("Thank you for doing Business with us!");

            _invoiceElements.Add(footElement);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Method:visit
 /// Purpose:Saves footer.
 /// </summary>
 /// <param name="footerElement"></param>
 public void visit(FooterElement footerElement)
 {
     _root.Add(new XElement("footer", footerElement.Footer));
 }