Ejemplo n.º 1
0
        private void frmTurnos_Load(object sender, EventArgs e)
        {
            if (id == 1)
            {
                this.btnAusente.Enabled  = false;
                this.btnPresente.Enabled = false;
            }

            try
            {
                this.row       = -1;
                this.tabla     = new DataTable("Turnos");
                dtpFecha.Value = DateTime.Now;
                MedicoNegocio MN = new MedicoNegocio();
                cbxMedico.DataSource = MN.ListarMedicos();
                // this.btnHistoriaClinica.Enabled = false;
                // this.btnPresente.Enabled = false;
                // this.btnAusente.Enabled = false;
                // this.dgvTurnos.Enabled = false;

                if (cbxMedico.Items.Count > 0)
                {
                    cbxMedico.SelectedIndex = 0;
                }
            }catch (Exception ex)
            {
                return;
            }
        }
Ejemplo n.º 2
0
        private void frmTurnos_Load(object sender, EventArgs e)
        {
            try
            {
                this.row       = -1;
                this.tabla     = new DataTable("Turnos");
                dtpFecha.Value = DateTime.Now;
                MedicoNegocio MN = new MedicoNegocio();
                cbxMedico.DataSource = MN.ListarMedicos();

                if (cbxMedico.Items.Count > 0)
                {
                    cbxMedico.SelectedIndex = 0;
                }
            }catch (Exception ex)
            {
                return;
            }
        }