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_deleteUser", "@id");
             R.ShowUsers(dataGridView1, userIDGV, NameGV, UserNameGV, PasswordGV, PhoneGV, EmailGV, StatusGV);
         }
     }
 }
Exemple #2
0
 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(catID, "st_deleteCategory", "@id");
             R.ShowCategories(dataGridView1, catIDGV, catNameGV, StatusGV);
         }
     }
 }
Exemple #3
0
 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(prodID, "s_ProductDelete", "@proID");
             R.ShowProducts(dataGridView1, proIDGV, proNameGV, ExpiryGV, CatGV, PriceGV, barcodeGV, CatIDGV);
         }
     }
 }