Beispiel #1
0
 private void tsbAnular_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show(Mensajes.ANULAR_FORM, Mensajes.NOMBRE_SOFT, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
     {
         try {
             if (ProveedorDAL.anularproveedor(proveedor.codigo) == true)
             {
                 GeneralC.deshabilitarBotones(ref tstMenuPatron);
                 GeneralC.limpiarControles(this);
                 GeneralC.deshabilitarControles(this);
                 btnSalir.Enabled  = true;
                 tsbBuscar.Enabled = true;
                 tsbNuevo.Enabled  = true;
                 MessageBox.Show(Mensajes.CONFIRMACION_ANULADO, Mensajes.NOMBRE_SOFT, MessageBoxButtons.OK, MessageBoxIcon.Information);
             }
         } catch (Exception ex)
         {
             MessageBox.Show(ex.Message, Mensajes.NOMBRE_SOFT, MessageBoxButtons.OK, MessageBoxIcon.Warning);
         }
     }
 }