Ejemplo n.º 1
0
        private void buttonAddGoodForm_Click(object sender, EventArgs e)
        {
            FormAddProduct fAddGood = new FormAddProduct();

            fAddGood.ShowDialog();

            LoadProductCombobox();
        }
Ejemplo n.º 2
0
        private void buttonAdd_Click(object sender, EventArgs e)
        {
            Button categoryButtonTagged = buttonAdd.Tag as Button;

            if (categoryButtonTagged == buttonCategoryProduct)
            {
                FormAddProduct formAddGood = new FormAddProduct();
                formAddGood.ShowDialog();

                LoadDtgvProduct();
            }

            if (categoryButtonTagged == buttonCategorySupplier)
            {
                FormAddSupplier formAddSupplier = new FormAddSupplier();
                formAddSupplier.ShowDialog();

                LoadDtgvSupplier();
            }

            if (categoryButtonTagged == buttonCategoryReceiveVoucher)
            {
                FormAddReceiveVoucher fAddInputVoucher = new FormAddReceiveVoucher();
                fAddInputVoucher.ShowDialog();

                LoadDtgvReceiveVoucher();
            }

            if (categoryButtonTagged == buttonCategoryDeliveryVoucher)
            {
                FormAddDeliveryVoucher f = new FormAddDeliveryVoucher();
                f.ShowDialog();

                LoadDtgvDeliveryVoucher();
            }


            if (categoryButtonTagged == buttonCategoryCustomer)
            {
                FormAddCustomer fAdd = new FormAddCustomer();
                fAdd.ShowDialog();

                LoadDtgvCustomer();
            }
        }