public TestsForm(ClassForm classForm, PupilsForm pupilsForm, AnxietyTestResultMaker anxietyTestResultMaker, int pupilId, TestResultEngine testResultEngine, string name) { InitializeComponent(); _classForm = classForm; _pupilsForm = pupilsForm; _anxietyTestResultMaker = anxietyTestResultMaker; _testResultEngine = testResultEngine; _pupilId = pupilId; labelInfo.Text = "Ученик: " + name; printDocument1.DefaultPageSettings.Margins = new Margins(40, 40, 40, 40); }
public PupilsForm(MainForm mainForm, ClassForm classForm, AnxietyTestResultMaker anxietyTestResultMaker, int classId, PupilEngine pupilEngine, TestResultEngine testResultEngine, string className) { InitializeComponent(); _mainForm = mainForm; _classForm = classForm; _anxietyTestResultMaker = anxietyTestResultMaker; _classId = classId; labelInfo.Text = "Класс: " + className; _pupilEngine = pupilEngine; _testResultEngine = testResultEngine; }
private void ShowClassForm() { if (_classForm != null && !_classForm.IsDisposed) { _classForm.Show(); return; } _classForm = new ClassForm(this, _anxietyTestResultMaker, _classEngine, _pupilEngine, _testResultEngine) { MdiParent = this, Location = new Point(50, 50) }; _classForm.Show(); }