Example #1
0
        // Affichage de l’image et des boutons
        private void AfficherQuestion()
        {
            Progression_Label.Text = "Série : " + (this.compteurSerie + 1) + "    –    Question : " + (this.compteurQuestion + 1);

            Objet_PictureBox.ImageLocation = "..\\..\\..\\EMACApp\\AppImages\\Test_2\\" + this.test.imagesSeries[this.compteurSerie][this.compteurQuestion];
            Objet_PictureBox.Show();
            Zone_PictureBox.Show();
            Bouton3_Button.Show();

            if (compteurQuestion != 0)
            {
                Bouton2_Button.Show();
                Bouton1_Button.Show();
            }

            // Démarrage et affichage du chronomètre en mode difficile
            if (this.test.difficulte)
            {
                this.decompte       = this.test.intervalle;
                Decompte_Label.Text = this.decompte.ToString();
                Chrono_Panel.Show();
                Decompte_Label.Show();
                Decompte_Timer.Start();
                AfficherQuestion_Timer.Start();
            }
        }
Example #2
0
        // Affichage de la question
        private void AfficherQuestion()
        {
            Progression_Label.Text = "Question " + (this.compteurQuestion + 1) + " sur " + this.test.questions.Count;
            Operation_Label.Text   = this.test.questions[this.compteurQuestion];
            Reponse_TextBox.Clear();

            // Démarrage et affichage du chronomètre en mode difficile
            if (this.test.difficulte)
            {
                this.decompte       = this.test.intervalle;
                Decompte_Label.Text = this.decompte.ToString();
                Chrono_Panel.Show();
                Decompte_Label.Show();
                Decompte_Timer.Start();
                AfficherQuestion_Timer.Start();
            }
        }
Example #3
0
        // Affichage de l’image pendant 2 ou 4 secondes avec décompte
        private void Suivant_Button_Click(object sender, EventArgs e)
        {
            // Masquage de l’écran de règle
            Regle_Label.Hide();
            Suivant_Button.Hide();

            // Affichage de la première image
            Image_PictureBox.ImageLocation = "..\\..\\..\\EMACApp\\AppImages\\Test_1\\" + this.test.imagesQuestion[this.compteur];
            Image_PictureBox.Show();

            // Affichage et démarrage du chronomètre
            this.decompte       = this.test.intervalle;
            Decompte_Label.Text = this.decompte.ToString();
            Chrono_Panel.Show();
            Decompte_Label.Show();
            Decompte_Timer.Start();
            AfficherImage_Timer.Start();
        }