private void enviarbtn_Click(object sender, EventArgs e) { int ee = 0; // bandera = false; // listita.Clear(); citaEnCurso(); listita.RemoveAll(x => x.Nombre == textBox1.Text); this.cargarGrid(); if (idEstado == 0) { ee = 23; } if (idEstado == 1) { ee = 24; } else if (idEstado == 2) { ee = 25; } servicioAExamen(); Laboratorio_BLL.agregarResultadoLaboratorio(idPrueba, cita, textBox2.Text, ee); MessageBox.Show("Resultados de las pruebas agregadas", "Informacion", MessageBoxButtons.OK, MessageBoxIcon.Information); }
private void CargarCombosEstadosExamenes() { List <ESTADOS> lstresultado = Laboratorio_BLL.ConsultaEstadosExamenes(); this.comboBox1.DataSource = lstresultado; comboBox1.ValueMember = "ID_Estados"; comboBox1.DisplayMember = "Nombre"; comboBox1.Refresh(); }