Ejemplo n.º 1
0
        public void EditQuestionSet(QuestionSet quetionSet)
        {
            tabPage.Selected = true;
            TabPage tp = (TabPage)editingQuestionSets[quetionSet.Value.Id];

            if (tp == null)
            {
                QuestionSetEditor e = new QuestionSetEditor(quetionSet);
                tp = CreatePage(e, quetionSet.Value.Name);
                editingQuestionSets[quetionSet.Value.Id] = tp;
            }

            tp.Selected = true;
            tp.Focus();
        }
Ejemplo n.º 2
0
        public void EditTest(Test test)
        {
            tabPage.Selected = true;
            TabPage tp = (TabPage)editingTests[test.Value.Id];

            if (tp == null)
            {
                TestEditor e = new TestEditor(test);
                tp = CreatePage(e, test.Value.Name);
                editingTests[test.Value.Id] = tp;
            }

            tp.Selected = true;
            tp.Focus();
        }
Ejemplo n.º 3
0
        public void EditPassageQuestion(PassageQuestion quetion)
        {
            tabPage.Selected = true;
            TabPage tp = (TabPage)editingQuestionSets[quetion.Value.Id];

            if (tp == null)
            {
                PassageQuestionEditor e = new PassageQuestionEditor(quetion);
                tp = CreatePage(e, BuisinessObjects.TypeNames[quetion.Value.TypeId]);

                editingQuestionSets[quetion.Value.Id] = tp;
            }

            tp.Selected = true;
            tp.Focus();
        }