Beispiel #1
0
 //DeleteProduct Process Check
 private void btn_DeleteProduct_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("Are you sure you want to Delete?", "Confirm Delete", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
     {
         Pro.DeleteProduct(dataGridV_Product.CurrentRow.Cells[0].Value.ToString());
         MessageBox.Show("Product Deleted Successfully.", "Delete", MessageBoxButtons.OK, MessageBoxIcon.Information);
         ViewAllProducts();
     }
     else
     {
         MessageBox.Show("Deleted Process Cancelled .", "Delete", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }