Ejemplo n.º 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);
         }
     }
 }
Ejemplo n.º 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);
         }
     }
 }
Ejemplo n.º 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);
         }
     }
 }