示例#1
0
 private void btnEliminateUser_Click(object sender, EventArgs e)
 {
     try
     {
         Eliminar.eliminarDB("APPUSER", "idUser", Convert.ToInt32(comboBoxUsers.SelectedValue));
         MessageBox.Show("Usuario eliminado exitosamente");
     }
     catch (Exception)
     {
         MessageBox.Show("Ha ocurrido un error");
     }
 }
示例#2
0
 private void btnEliminateProduct_Click(object sender, EventArgs e)
 {
     try
     {
         Eliminar.eliminarDB("PRODUCT", "idProduct", Convert.ToInt32(comboBoxProducts.SelectedValue));
         MessageBox.Show("Producto eliminado exitosamente");
     }
     catch (Exception)
     {
         MessageBox.Show("Ha ocurrido un error");
     }
 }
 private void btnEliminateAddress_Click(object sender, EventArgs e)
 {
     try
     {
         Eliminar.eliminarDB("ADDRESS", "idAddress", Convert.ToInt32(comboBoxAddress.SelectedValue));
         MessageBox.Show("Direccion eliminada exitosamente");
     }
     catch (Exception)
     {
         MessageBox.Show("Ha ocurrido un error");
     }
 }