コード例 #1
0
        public Cuestionario()
        {
            ConstruirCuestionario();

            //PreguntasDelCuestionaro Pregunta = (PreguntasDelCuestionaro)Preguntas[Aleatorio[NumeroPregunta]];
            PreguntasDelCuestionaro Pregunta = (PreguntasDelCuestionaro)Preguntas[Numeros[NumeroPregunta]];

            InitializeComponent();
            TiempoCuestionario.Start();
            Minutos.Text = "19";

            lbPregunta.Text = (++NumeroPregunta).ToString() + "-. " + Pregunta.Pregunta;
            radboA.Text     = "A) " + Pregunta.R1;
            radboB.Text     = "B) " + Pregunta.R2;
            radboC.Text     = "C) " + Pregunta.R3;
        }
コード例 #2
0
        public Cuestionario(Form1 formPadre)
        {
            this.formPadre = formPadre;
            MdiParent      = formPadre;

            ConstruirCuestionario();

            PreguntasDelCuestionaro MostrarPregunta = (PreguntasDelCuestionaro)Preguntas[Numeros[NumeroPregunta]];

            InitializeComponent();

            TiempoCuestionario.Start();

            Minutos.Text = "19";
            //++NumeroPregunta
            lbPregunta.Text = (1).ToString() + "-. " + MostrarPregunta.Pregunta;
            radboA.Text     = "A) " + MostrarPregunta.R1;
            radboB.Text     = "B) " + MostrarPregunta.R2;
            radboC.Text     = "C) " + MostrarPregunta.R3;

            GraficaPuntosCorrectos.Hide();
        }