Ejemplo n.º 1
0
 private void btnEliminar_Click(object sender, EventArgs e)
 {
     try
     {
         SucursalBL suc = new SucursalBL();
         suc.Eliminar(Convert.ToInt32(txtId.Text));
     }
     catch (Exception ex)
     {
         MessageBox.Show("ERROR" + ex.Message);
     }
 }
 private void btnEliminar_Click(object sender, EventArgs e)
 {
     try
     {
         SucursalBL suc = new SucursalBL();
         suc.Eliminar(Convert.ToInt32(this.dtgSucursal.CurrentRow.Cells[0].Value.ToString()));
         this.SucursalUI_Load(sender, e);
     }
     catch (Exception ex)
     {
         MessageBox.Show("ERROR" + ex.Message);
     }
 }
Ejemplo n.º 3
0
 public bool Eliminar(int id)
 {
     return(SucursalBL.Eliminar(id));
 }