private void bunifuThinButton21_Click(object sender, EventArgs e) { descripcion = txtbxDescripcion.Text; montoSTR = txtbxMonto.Text; EsNum = int.TryParse(montoSTR, out monto); if (string.IsNullOrEmpty(txtbxDescripcion.Text) || string.IsNullOrEmpty(txtbxMonto.Text)) { MessageBox.Show("Todos los campos deben estar cubiertos !!! "); } else if (!EsNum) { MessageBox.Show("Solo se permite el ingreso de numeros en 'Monto' !!! "); } else { EgresosClase nvo = new EgresosClase(); nvo.descripcion = descripcion; nvo.monto = monto; nvo.id_usuario = id_us_online; int retorno = Funciones.AgregarEgreso(nvo); MessageBox.Show("Egreso Agregado Satisfactoriamente"); } }