コード例 #1
0
ファイル: TestsForm.cs プロジェクト: kong8313/MyPrograms
        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);
        }
コード例 #2
0
ファイル: PupilsForm.cs プロジェクト: kong8313/MyPrograms
        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;
        }
コード例 #3
0
        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();
        }