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(StockID, "st_stockdeletes", "@stockid");
             R.ShowStock(DataGridView1, StockIDGV, SprodIDGV, ProductNamepwGV, PQuantityGV, PurchaseRateGV, PSalesRateGV);
         }
     }
 }
Exemple #2
0
 public override void BtnDelete_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);
         }
     }
 }