private void comboBoxPaciente_SelectedIndexChanged(object sender, EventArgs e) { if (this.comboBoxPaciente.Text != "") { ap.Seleccionar_Paciente(this.comboBoxPaciente.Text); } }
private void comboBoxPaciente_SelectedIndexChanged(object sender, EventArgs e) { if (this.comboBoxPaciente.Text != "") { ap.Seleccionar_Paciente(this.comboBoxPaciente.Text); //int edad = ap.Paciente.Edad; //if ( edad == FunctionLibrary.AgeFirstLevel ) // this.comboBoxTest.SelectedIndex = 2; //else if ( FunctionLibrary.InRange( edad, FunctionLibrary.AgeMinSecondLevel, // FunctionLibrary.AgeMaxSecondLevel ) ) // this.comboBoxTest.SelectedIndex = 3; } }
private void tsbReporte_Click(object sender, EventArgs e) { if (this.listViewPacientes.SelectedItems.Count == 0) { return; } string cod = this.listViewPacientes.SelectedItems[0].SubItems[1].Text; Paciente p = ap.Seleccionar_Paciente(cod); Resultado_AS res = ap.ExtractResultFromPaciente(); if (res == null) { var resp = new Resp("Este paciente no ha realizado ninguna prueba", "Paciente sin consultarse"); resp.ShowDialog(this); return; } var e2pdf = new FormExport2PDF(p, res); e2pdf.ShowDialog(this); }