Exemplo n.º 1
0
 //Constructors
 #region InvoiceLayoutPage
 public InvoiceLayoutPage(
     InvoiceLayout parent,
     InvoiceLayoutPage previousPage,
     IEnumerable <SaleItem> items)
 {
     this.parent       = parent;
     this.PreviousPage = previousPage;
     this.SaleItems    = new List <SaleItem>(items);
 }
Exemplo n.º 2
0
        //Methods
        #region Page_PreRender
        /// <summary>
        /// Handles the Load event of the Page control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        protected void Page_PreRender(object sender, EventArgs e)
        {
            try
            {
                InvoiceLayout layout = new InvoiceLayout(this.RequestAddOn.Query.Sale);

                this.PageRepeater.DataSource = layout.InvoiceLayoutPages;
                this.PageRepeater.DataBind();
            }
            catch (Exception ex)
            {
                this.ErrorLabel.Text = ex.DeepParse();
            }
        }