コード例 #1
0
ファイル: MainForm.cs プロジェクト: medo64/HamCheck
        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;
        }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: medo64/HamCheck
        private void hamSelect_Selected(object sender, ExamElementEventArgs e)
        {
            hamSetup.Element = e.Element;
            hamSetup.Visible = true;
            hamSetup.Focus();

            hamSelect.Visible = false;
        }