Exemple #1
0
        private void frmExamen_Load(object sender, EventArgs e)
        {
            RecorridoForm.CambiarIdioma(this);


            llenarGrillaMateria();
            CursoComponent cursoComponent = new CursoComponent();

            txtCurso.DataSource    = cursoComponent.ReadByAño(DateTime.Now.Year);
            txtCurso.DisplayMember = "nombre";
            txtCurso.ValueMember   = "Id";
            EspecialidadComponent especialidadComponent = new EspecialidadComponent();

            txtEspecialidad.DataSource    = especialidadComponent.Read();
            txtEspecialidad.ValueMember   = "Id";
            txtEspecialidad.DisplayMember = "especialidad";
            int año = DateTime.Now.Year;

            DateTime min = new DateTime(año, 3, 1);

            txtFecha.MinDate = min;
            txtFecha.MaxDate = DateTime.Now;
            SalaHorarioComponent salaHorario = new SalaHorarioComponent();

            txtAño.DataSource    = salaHorario.SoloAño();
            txtAño.DisplayMember = "Año";
        }
Exemple #2
0
        private void frmCursos_Load(object sender, EventArgs e)
        {
            RecorridoForm.CambiarIdioma(this);
            llenarAños();
            llenarGrillaReservas();

            SalaHorarioComponent salaHorario = new SalaHorarioComponent();

            txtAño.DataSource    = salaHorario.SoloAño();
            txtAño.DisplayMember = "Año";
        }