Example #1
0
        private void EditProduct(ProductVM product)
        {
            ProductDetailsForm editProdictForm = new ProductDetailsForm(_productDao, _supplyDao, product);

            editProdictForm.OnSaved(LoadData);

            editProdictForm.Show();
        }
Example #2
0
        private void AddProductClick(object sender, EventArgs e)
        {
            ProductDetailsForm newProductForm = new ProductDetailsForm(_productDao, _supplyDao);

            newProductForm.OnSaved(LoadData);

            newProductForm.Show();
        }