コード例 #1
0
 public CreatingTestForm(ref LogicModel logicModel, EditingModeForm form, int index)
 {
     _form       = form;
     _logicModel = logicModel;
     _index      = index;
     InitializeComponent();
     SetSource();
 }
コード例 #2
0
 public CreatingTestForm(ref LogicModel logicModel, EditingModeForm form)
 {
     _form       = form;
     _logicModel = logicModel;
     _logicModel.TryAddTest(
         "Новый тест",
         new Question[]
     {
         new Question("Новый вопрос",
                      new Answer[] { new Answer("Новый ответ", false) }
                      , 0)
     });
     _index = _logicModel.Author.GetTests.Length - 1;
     InitializeComponent();
     SetSource();
 }