public CreatingTestForm(ref LogicModel logicModel, EditingModeForm form, int index) { _form = form; _logicModel = logicModel; _index = index; InitializeComponent(); SetSource(); }
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(); }