Exemplo n.º 1
0
 public virtual 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(supplierID, "st_deleteSupplier", "@suppID");
             r.showSuppliers(dataGridView1, SuppIDGV, companyGV, personGV, phone1GV, phone2GV, addressGV, ntnGV, StatusGV);
         }
     }
 }
Exemplo n.º 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(prodID, "st_productDelete", "@prodID");
             r.showProducts(dataGridView1, proIDGV, proGV, expiryGV, catGV, priceGV, barcodeGV, catIDGV);
         }
     }
 }
Exemplo n.º 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(catID, "st_deleteCategory", "@id");
             r.showCategories(dataGridView1, catIDGV, NameGV, StatusGV);
         }
     }
 }
 public override void button4_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, PassGV, EmailGV, PhoneGV, statusGV);
             }
         }
     }
 }
 public override void button4_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(SupplierID, "st_deleteSupplier", "@suppID");
                 r.showSupplier(dataGridView1, suppIDGV, companyGV, personGV, phone1GV, phone2GV, addressGV, ntnGV, statusGV);
             }
         }
     }
 }