Esempio n. 1
0
 private void txtModificarIdExamen_TextChanged(object sender, EventArgs e)
 {
     txtIdExamen.Text = txtModificarIdExamen.Text;
     if (ModificarIdExamen())
     {
         this.txtModificarIdExamen.BackColor = Color.White;
         if (ex.ExamenRegistrado(Convert.ToInt32(txtModificarIdExamen.Text)) > 0)
         {
             ex.LlenarTexBoxConsultaExamen(txtIdPacienteExa, txtIdDoctorExa, Convert.ToInt32(txtModificarIdExamen.Text),
                                           rtbObservacionesExamen, dtpFechaExamen, txtCostoExamen);
             ActivarExamenTxt();
             this.btnAceptarExamen.Enabled       = false;
             this.btnModificarExamen.Enabled     = true;
             this.btnEliminarExamen.Enabled      = false;
             this.txtIdExamen.Enabled            = false;
             this.txtModificarIdExamen.BackColor = Color.White;
         }
     }
     else
     {
         LimpiezaExamenTxt();
         DesactivarExamenTxt();
         this.txtModificarIdExamen.BackColor = Color.Red;
         this.btnModificarExamen.Enabled     = false;
     }
 }