public static void Delete(MainElement main)
        {
            switch (main.TabControl.SelectedTab.Text)
            {
            case "Account":
                Remove.Account(main.DataGridView);
                Display.Account(main);
                break;

            case "Product":
                Remove.Product(main.DataGridView);
                Display.Product(Check.AccountInfo, main);
                break;
            }
        }
        private void tabCtrl_SelectedIndexChanged(object sender, EventArgs e)
        {
            tbxSearch.ResetText();
            cbxFilter.ResetText();
            cbxFilter.Items.Clear();

            switch (tabCtrl.SelectedTab.Text)
            {
            case "Account":
                Display.Account(main);
                break;

            case "Bill":
                Display.Bill(main);
                break;

            case "Customer":
                Display.Customer(main);
                break;

            case "Employee":
                Display.Employee(main);
                break;

            case "Product":
                Display.Product(Check.AccountInfo, main);
                break;

            case "Request":
                Display.Request(Check.AccountInfo, main);
                break;

            case "Statistic":
                Display.Statistic(main);
                break;
            }

            dgvTable.ReadOnly           = true;
            dgvTable.AllowUserToAddRows = false;

            btnAdd.Text    = "Add";
            btnEdit.Text   = "Edit";
            btnDelete.Text = "Delete";
        }