//event handler public void OnViewInvoice(List <Database.Product> invoiceList, EventArgs args) { Pages.InvoicePage myInvoicePage = new Pages.InvoicePage(invoiceList); myInvoicePage.moreProductsEvent += this.OnMoreProducts; ChangeContainer(myInvoicePage); }
private void btn_New_Click(object sender, EventArgs e) { Pages.InvoicePage myInvoicePage = new Pages.InvoicePage(); ChangeContainer(myInvoicePage); }