Exemple #1
0
        private void btnProduct_Click(object sender, EventArgs e)
        {
            var productForm       = new FormProduct();
            var productRepository = new DataAccessProduct();
            var productPresenter  = new ProductOperations(productForm, productRepository);

            productForm.Show();

            if (this.Product != null)
            {
                this.Product();
            }
        }
        private void btnProduct_Click(object sender, EventArgs e)
        {
            FormProduct product = new FormProduct();

            product.Show();
        }