public override void deleteBtn_Click(object sender, EventArgs e)
 {
     if (edit == 1)
     {
         DialogResult dr = MessageBox.Show("Are you sure , you want to delete record?", "Question..", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
         if (dr == DialogResult.Yes)
         {
             deletion d = new deletion();
             d.deleteProducts(proID, "st_productDelete", "@proID");
             r.showProduct(dataGridView1, proIDGV, proNameGV, expiryGV, catGV, barcodeGV, catIDGV);
         }
     }
 }
 public override void deleteBtn_Click(object sender, EventArgs e)
 {
     if (edit == 1)
     {
         DialogResult dr = MessageBox.Show("Are you sure , you want to delete record?", "Question..", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
         if (dr == DialogResult.Yes)
         {
             deletion d = new deletion();
             d.delete(userID, " st_deleteUsers", "@id");
             r.showUsers(dataGridView1, userIDGV, NameGV, UserNameGV, PassGV, EmailGV, PhoneGV, stausGV);
         }
     }
 }
 public override void deleteBtn_Click(object sender, EventArgs e)
 {
     if (edit == 1)
     {
         DialogResult dr = MessageBox.Show("Are you sure , you want to delete record?", "Question..", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
         if (dr == DialogResult.Yes)
         {
             deletion d = new deletion();
             d.deletecat(categoryID, " st_deleteCategory", "@id");
             r.showCategories(dataGridView1, catIDGV, NameGV, stausGV);
         }
     }
 }
 public override void deleteBtn_Click(object sender, EventArgs e)
 {
     if (edit == 1)
     {
         DialogResult dr = MessageBox.Show("Are you sure , you want to delete record?", "Question..", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
         if (dr == DialogResult.Yes)
         {
             deletion d = new deletion();
             d.deletesup(supplierID, " st_deleteSuppliers", "@suppID");
             r.showSuppliers(dataGridView1, supIDGV, comNameGV, personGV, phone1GV, phone2GV, addressGV, ntnGV, stausGV);
         }
     }
 }