public override void button3_Click(object sender, EventArgs e)
        {
            if (productTxt.Text == "")
            {
                proErrorLbl.Visible = true;
            }
            else
            {
                proErrorLbl.Visible = false;
            }
            if (barcodeTxt.Text == "")
            {
                barcodeErrorlbl.Visible = true;
            }
            else
            {
                barcodeErrorlbl.Visible = false;
            }
            //   if (expiryPicker.Value < DateTime.Now) { ExpiryErrorlbl.Visible = true; ExpiryErrorlbl.Text = "Invalid Date"; } else { ExpiryErrorlbl.Visible = true ; }
            if (categoryDD.SelectedIndex == -1 || categoryDD.SelectedIndex == 0)
            {
                categoryErrorlbl.Visible = true;
            }
            else
            {
                categoryErrorlbl.Visible = false;
            }
            if (proErrorLbl.Visible || barcodeErrorlbl.Visible || categoryErrorlbl.Visible)
            {
                MainClass.showMG("Filds With * Are Mandatory", "Stop", "Error"); // Error is the type of Message
            }
            else
            {
                if (edit == 0)
                {
                    insertion i = new insertion();
                    i.insertProduct(productTxt.Text, barcodeTxt.Text, expiryPicker.Value, Convert.ToInt32(categoryDD.SelectedValue));
                    r.showProducts(dataGridView1, proIDGV, proGV, expiryGV, catGV, barcodeGV, catIDGV);
                    MainClass.disable_reset(lftPanel);
                }
                else if (edit == 1)///for Updte Operation
                {
                    DialogResult dr = MessageBox.Show("Are you sure, you want to updata Record", "Question..", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
                    if (dr == DialogResult.Yes)
                    {
                        updation u = new updation();

                        u.updateProduct(prodID, productTxt.Text, barcodeTxt.Text, expiryPicker.Value, Convert.ToInt32(categoryDD.SelectedValue));
                        r.showProducts(dataGridView1, proIDGV, proGV, expiryGV, catGV, barcodeGV, catIDGV);
                        MainClass.disable_reset(lftPanel);
                    }
                }
            }
        }