private void buttonAddSupplierForm_Click(object sender, EventArgs e)
        {
            FormAddSupplier fAddSup = new FormAddSupplier();

            fAddSup.ShowDialog();

            LoadSupplierCombobox();
        }
Beispiel #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();
            }
        }