Beispiel #1
0
 public override void deleteButton_Click(object sender, EventArgs e)
 {
     if (edit == 1)
     {
         DialogResult dr = MessageBox.Show("Are you sure, you want to Delete record?", "Question..",
                                           MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
         if (dr == DialogResult.Yes)
         {
             deletion d = new deletion();
             d.delete(prodId, "s_productDelete", "@proid");
             r.showProducts(displayDataGridView, proIDGV, proGV, ExpiryGV, catGV, barcodeGV, CatIDGV);
         }
     }
 }
Beispiel #2
0
 public override void deleteButton_Click(object sender, EventArgs e)
 {
     if (edit == 1)
     {
         DialogResult dr = MessageBox.Show("Are you sure, you want to Delete record?", "Question..",
                                           MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
         if (dr == DialogResult.Yes)
         {
             deletion d = new deletion();
             d.delete(userId, "st_deleteUser", "@id");
             r.showUsers(displayDataGridView, userIDGV, NameGV, UserNameGV, passGV, EmailGV, PhoneGV, statusGV);
         }
     }
 }
Beispiel #3
0
 public override void deleteButton_Click(object sender, EventArgs e)
 {
     if (edit == 1)
     {
         DialogResult dr = MessageBox.Show("Are you sure, you want to Delete record?", "Question..",
                                           MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
         if (dr == DialogResult.Yes)
         {
             deletion d = new deletion();
             d.delete(catId, "st_deleteCatergory", "@id");
             r.showCategories(displayDataGridView, catIDGV, NameGV, statusGV);
         }
     }
 }
 public override void deleteButton_Click(object sender, EventArgs e)
 {
     if (edit == 1)
     {
         DialogResult dr = MessageBox.Show("Are you sure, you want to Delete record?", "Question..",
                                           MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
         if (dr == DialogResult.Yes)
         {
             deletion d = new deletion();
             d.delete(supplierId, "sp_deleteSupplier", "@suppID");
             r.showSuppliers(displayDataGridView, suppIDGV, comGV, conPerGV, phone1GV, phone2GV, addressGV,
                             ntnGV, statusGV);
         }
     }
 }