Ejemplo n.º 1
0
        public MainForm()
        {
            InitializeComponent();

            if (!File.Exists(Program.DB_FILE_PATH))
            {
                new Database.DataModelsDataContext().CreateDatabase();
            }

            Pages.ProductPage myProductPage = new Pages.ProductPage();
            myProductPage.viewInvoiceEvent += this.OnViewInvoice;

            ChangeContainer(myProductPage);
        }
Ejemplo n.º 2
0
 //event handler
 public void OnMoreProducts(List <Database.Product> invoiceList, EventArgs args)
 {
     Pages.ProductPage myProductPage = new Pages.ProductPage(invoiceList);
     myProductPage.viewInvoiceEvent += this.OnViewInvoice;
     ChangeContainer(myProductPage);
 }
Ejemplo n.º 3
0
 private void btn_Products_Click(object sender, EventArgs e)
 {
     Pages.ProductPage myProductPage = new Pages.ProductPage();
     myProductPage.viewInvoiceEvent += this.OnViewInvoice;
     ChangeContainer(myProductPage);
 }
Ejemplo n.º 4
0
 public ProductCard(Database.Product p, Pages.ProductPage myProPage)
 {
     InitializeComponent();
     product        = p;
     this.myProPage = myProPage;
 }