Esempio n. 1
0
        private void hamSetup_Selected(object sender, ExamElementEventArgs e)
        {
            switch (e.Type) {
                case ExamType.Exam:
                    hamShow.ShowAnswerAfterEveryQuestion = false;
                    hamShow.ShowResultsAfterQuestions = true;
                    hamShow.Items = hamSetup.Element.GetExamQuestions();
                    break;

                case ExamType.FlashExam:
                    hamShow.ShowAnswerAfterEveryQuestion = true;
                    hamShow.ShowResultsAfterQuestions = true;
                    hamShow.Items = hamSetup.Element.GetExamQuestions();
                    break;

                case ExamType.Randomize:
                    hamShow.ShowAnswerAfterEveryQuestion = true;
                    hamShow.ShowResultsAfterQuestions = false;
                    hamShow.Items = hamSetup.Element.GetRandomizedQuestions();
                    break;

                case ExamType.All:
                    hamShow.ShowAnswerAfterEveryQuestion = true;
                    hamShow.ShowResultsAfterQuestions = false;
                    hamShow.Items = hamSetup.Element.GetAllQuestions();
                    break;
            }

            hamShow.BackColor = Helper.GetColor(hamSetup.Element);
            hamShow.Visible = true;
            hamShow.Focus();
            hamSetup.Visible = false;
        }
Esempio n. 2
0
        private void hamSelect_Selected(object sender, ExamElementEventArgs e)
        {
            hamSetup.Element = e.Element;
            hamSetup.Visible = true;
            hamSetup.Focus();

            hamSelect.Visible = false;
        }