コード例 #1
0
 public override void RefreshSecondaryData()
 {
     _combo_opciones = new Library.Instruction.HComboBoxSourceList();
     _combo_opciones.Add(new ComboBoxSource(1, ""));
     _combo_opciones.Add(new ComboBoxSource(2, "A"));
     _combo_opciones.Add(new ComboBoxSource(3, "B"));
     _combo_opciones.Add(new ComboBoxSource(4, "C"));
     Datos_Opciones.DataSource = _combo_opciones;
     PgMng.Grow();
 }
コード例 #2
0
        /// <summary>
        /// Asigna el objeto principal al origen de datos
        /// <returns>void</returns>
        /// </summary>
        protected override void RefreshMainData()
        {
            if (_entity != null)
            {
                Datos_Respuesta.DataSource = Respuestas.SortList(_entity.Respuestas, "Opcion", ListSortDirection.Ascending);
            }

            Library.Instruction.HComboBoxSourceList _combo_opciones = new Library.Instruction.HComboBoxSourceList();
            _combo_opciones.Add(new ComboBoxSource(1, "A"));
            _combo_opciones.Add(new ComboBoxSource(2, "B"));
            _combo_opciones.Add(new ComboBoxSource(3, "C"));
            Datos_Opciones.DataSource = _combo_opciones;
        }
コード例 #3
0
        public override void RefreshSecondaryData()
        {
            ModuloList modulos = ModuloList.GetList(false);

            Library.Instruction.HComboBoxSourceList _combo_modulos = new Library.Instruction.HComboBoxSourceList(modulos);
            Datos_Modulos.DataSource = _combo_modulos;
            PgMng.Grow(string.Empty, "_combo_modulos");

            InstructorList instructores = InstructorList.GetList(false);

            Library.Instruction.HComboBoxSourceList _combo_instructores = new Library.Instruction.HComboBoxSourceList(instructores);
            Datos_Instructores.DataSource = _combo_instructores;
            PgMng.Grow(string.Empty, "_combo_instructores");

            PromocionList promociones = PromocionList.GetList(false);

            Library.Instruction.HComboBoxSourceList _combo_promociones = new Library.Instruction.HComboBoxSourceList(promociones);
            ComboBoxSource combo = new ComboBoxSource(-1, "No especificado");

            _combo_promociones.Add(combo);
            Datos_Promociones.DataSource = _combo_promociones;
            PgMng.Grow(string.Empty, "_combo_promociones");

            _lista_preguntas = PreguntaList.GetPreguntasModulo(Entity.OidModulo);
            PgMng.Grow(string.Empty, "Preguntas del Módulo");
            //_submodulos = SubmoduloList.GetList(false);
            //_temas = TemaList.GetList(false);
        }
コード例 #4
0
        public override void RefreshSecondaryData()
        {
            if (_propuesto == 0)
            {
                _modulos = ModuloList.GetList(false);
                Library.Instruction.HComboBoxSourceList _combo_modulos = new Library.Instruction.HComboBoxSourceList(_modulos);
                Datos_Modulos.DataSource = _combo_modulos;
            }
            else
            {
                Library.Instruction.HComboBoxSourceList _combo_modulos = new Library.Instruction.HComboBoxSourceList();
                _combo_modulos.Add(new ComboBoxSource(_propuesto, ModuloInfo.Get(_propuesto, false).Texto));
                Datos_Modulos.DataSource = _combo_modulos;
                ((ComboBoxSource)Modulo_CB.SelectedItem).Oid = _propuesto;
                _entity.OidModulo = _propuesto;
                Modulo_CB.Enabled = false;
            }
            PgMng.Grow(string.Empty, "Modulos");

            //Library.Instruction.HComboBoxSourceList _combo_idiomas = new Library.Instruction.HComboBoxSourceList();
            //_combo_idiomas.Add(new ComboBoxSource(0, ""));
            //_combo_idiomas.Add(new ComboBoxSource(1, "Español"));
            //_combo_idiomas.Add(new ComboBoxSource(2, "Inglés"));
            Datos_Idiomas.DataSource = Library.Common.EnumText <EIdioma> .GetList(false);

            PgMng.Grow(string.Empty, "Idiomas");
        }
コード例 #5
0
        public override void RefreshSecondaryData()
        {
            ModuloList modulos = ModuloList.GetList(false);

            Library.Instruction.HComboBoxSourceList _combo_modulos = new Library.Instruction.HComboBoxSourceList(modulos);
            Datos_Modulos.DataSource = _combo_modulos;
            PgMng.Grow(string.Empty, "_combo_modulos");

            InstructorList instructores = InstructorList.GetList(false);

            Library.Instruction.HComboBoxSourceList _combo_instructores = new Library.Instruction.HComboBoxSourceList(instructores);
            Datos_Instructores.DataSource = _combo_instructores;
            PgMng.Grow(string.Empty, "_combo_instructores");

            PromocionList promociones = PromocionList.GetList(false);

            Library.Instruction.HComboBoxSourceList _combo_promociones = new Library.Instruction.HComboBoxSourceList(promociones);
            ComboBoxSource combo = new ComboBoxSource(-1, "No especificado");

            _combo_promociones.Add(combo);
            Datos_Promociones.DataSource = _combo_promociones;
            PgMng.Grow(string.Empty, "_combo_promociones");

            //_respuestas = RespuestaList.GetList();
        }
コード例 #6
0
        public override void RefreshSecondaryData()
        {
            _promociones = PromocionList.GetList(false);
            Library.Instruction.HComboBoxSourceList _combo_promociones = new Library.Instruction.HComboBoxSourceList(_promociones);
            ComboBoxSource combo = new ComboBoxSource(-1, "No especificado");

            _combo_promociones.Add(combo);
            Datos_Promociones.DataSource = _combo_promociones;
            //PgMng.Grow(string.Empty, "Promociones");

            _combo_tipo = new Library.Instruction.HComboBoxSourceList();
            _combo_tipo.Add(new ComboBoxSource(0, ""));
            _combo_tipo.Add(new ComboBoxSource(1, "Finales"));
            _combo_tipo.Add(new ComboBoxSource(2, "Parciales"));
            Datos_Tipos.DataSource = _combo_tipo;
            //PgMng.Grow(string.Empty, "Tipos");
        }
コード例 #7
0
        public override void RefreshSecondaryData()
        {
            PromocionList promociones = PromocionList.GetList(false);

            _combo_promociones = new Library.Instruction.HComboBoxSourceList(promociones);

            Datos_Promociones.DataSource = _combo_promociones;
            PgMng.Grow();

            _alumnos = AlumnoList.GetList(false);
            _combo_promociones.Childs = new Library.Instruction.HComboBoxSourceList(_alumnos);

            Datos_ComboAlumnos.DataSource = _combo_promociones.Childs;
            PgMng.Grow();

            _combo_tipo = new Library.Instruction.HComboBoxSourceList();
            _combo_tipo.Add(new ComboBoxSource());
            _combo_tipo.Add(new ComboBoxSource(1, "Curso"));
            _combo_tipo.Add(new ComboBoxSource(2, "Módulo"));

            Datos_Tipo.DataSource = _combo_tipo;
            PgMng.Grow();
        }
コード例 #8
0
        public override void RefreshSecondaryData()
        {
            _productos = ProductList.GetList(false);
            _series    = SerieList.GetList(false, ETipoSerie.Compra);
            _modulos   = ModuloList.GetList(false);
            Library.Instruction.HComboBoxSourceList comboModulosT = new Library.Instruction.HComboBoxSourceList(_modulos);
            Library.Instruction.HComboBoxSourceList comboModulosP = new Library.Instruction.HComboBoxSourceList(_modulos);
            PgMng.Grow();

            _submodulos          = SubmoduloList.GetList(false);
            comboModulosT.Childs = new Library.Instruction.HComboBoxSourceList(_submodulos);
            comboModulosP.Childs = new Library.Instruction.HComboBoxSourceList(_submodulos);
            PgMng.Grow();

            _source_list_t           = new DataSourceList(comboModulosT);
            _source_list_p           = new DataSourceList(comboModulosP);
            Datos_Modulos.DataSource = _source_list_t.CBList;
            PgMng.Grow();

            Library.Instruction.HComboBoxSourceList _incompatibles = new Library.Instruction.HComboBoxSourceList();
            ComboBoxSource _compatible = new ComboBoxSource(0, "");
            ComboBoxSource _inc_1      = new ComboBoxSource(1, "1");
            ComboBoxSource _inc_2      = new ComboBoxSource(2, "2");
            ComboBoxSource _inc_3      = new ComboBoxSource(3, "3");
            ComboBoxSource _inc_4      = new ComboBoxSource(4, "4");
            ComboBoxSource _inc_5      = new ComboBoxSource(5, "5");

            _incompatibles.Add(_compatible);
            _incompatibles.Add(_inc_1);
            _incompatibles.Add(_inc_2);
            _incompatibles.Add(_inc_3);
            _incompatibles.Add(_inc_4);
            _incompatibles.Add(_inc_5);
            Datos_Incompatible.DataSource = _incompatibles;
            PgMng.Grow();
        }