Exemple #1
0
        private void PacienteComboBox_SelectedValueChanged(object sender, EventArgs e)
        {
            try
            {
                _servicioDonante = new ServicioDonante();
                if (PacienteComboBox.SelectedIndex != 0)
                {
                    //list = _servicioDonante.GetLista();
                    //MostrarDatosEnGrilla();

                    //EditarEsto
                    //Donante donante = (Donante);
                    //list = _servicioDonante.GetLista(donante);
                    //MostrarDatosEnGrilla();

                    //GrupoSanguineotxt.Text = donante.;


                    //Helper.CargarDatosComboDonantes(ref DonanteComboBox, paciente, this);
                }
                else
                {
                    DonanteComboBox.Enabled  = false;
                    CantidadDonantestxt.Text = "";
                    GrupoSanguineotxt.Text   = "";
                }
            }
            catch (Exception)
            {
                throw;
            }
        }
 private void FrmDonante_Load(object sender, EventArgs e)
 {
     try
     {
         _servi = new ServicioDonante();
         _list  = _servi.GetLista();
         MostrarDatosEnGrilla();
     }
     catch (Exception exception)
     {
         Console.WriteLine(exception);
         throw;
     }
 }