public ExamMainQuestionPanel(CustomFonts customFonts, string question, List <ExamSubQuestionPanel> subQuestionPanelsList) : base()
        {
            this.Size      = new Size(800, 500);
            this.BackColor = Color.White;
            this.Click    += Click_1;

            this.customFonts = customFonts;

            totalScorePanel                        = new ScorePanel(customFonts);
            totalScorePanel.Location               = new Point(670, 11);
            totalScorePanel.ScoreTextBox.Text      = "0";
            totalScorePanel.ScoreTextBox.BackColor = Color.White;
            totalScorePanel.ScoreTextBox.ReadOnly  = true;
            this.Controls.Add(totalScorePanel);

            mainQuestionLabel             = new Label();
            mainQuestionLabel.Location    = new Point(50, 53);
            mainQuestionLabel.Visible     = true;
            mainQuestionLabel.MaximumSize = new Size(700, 0);
            mainQuestionLabel.AutoSize    = true;
            mainQuestionLabel.Text        = question;
            mainQuestionLabel.Font        = customFonts.TextBoxFont();
            this.Controls.Add(mainQuestionLabel);

            //mainQuestionLabel.Size = new Size(700, 300);
            this.subQuestionPanelsList = subQuestionPanelsList;
            addSubQuestions();
            moveListItems(0);
        }
        public MainQuestionPanel(CustomFonts customFonts) : base()
        {
            this.Size            = new Size(800, 500);
            this.BackColor       = Color.White;
            this.ControlRemoved += ControlRemoved_1;
            this.Click          += Click_1;

            this.customFonts = customFonts;

            questionKindPanel          = new QuestionKindPanel(customFonts);
            questionKindPanel.Location = new Point(385, 11);
            this.Controls.Add(questionKindPanel);
            questionKindPanel.QuestionKindComboBox.SelectedIndexChanged += questionKindComboBox_SelectedIndexChanged_1;

            addSubQuestionButton          = new AddSubQuestionButton(customFonts);
            addSubQuestionButton.Location = new Point(560, 11);
            this.Controls.Add(addSubQuestionButton);
            addSubQuestionButton.Click += addSubQuestionButton_Click_1;

            totalScorePanel                        = new ScorePanel(customFonts);
            totalScorePanel.Location               = new Point(670, 11);
            totalScorePanel.ScoreTextBox.Text      = "0";
            totalScorePanel.ScoreTextBox.BackColor = Color.White;
            totalScorePanel.ScoreTextBox.ReadOnly  = true;
            this.Controls.Add(totalScorePanel);

            mainQuestionTextBox            = new TextBox();
            mainQuestionTextBox.Location   = new Point(50, 50);
            mainQuestionTextBox.Size       = new Size(700, 100);
            mainQuestionTextBox.Multiline  = true;
            mainQuestionTextBox.ScrollBars = ScrollBars.Vertical;
            mainQuestionTextBox.Text       = "○/✕ 문제입니다. 각각의 문제의 올바른 답 버튼을 눌러주세요.";
            mainQuestionTextBox.Font       = customFonts.TextBoxFont();
            mainQuestionTextBox.Visible    = false;
            this.Controls.Add(mainQuestionTextBox);
            mainQuestionTextBox.LostFocus += mainQuestionTextBox_LostFocus_1;

            mainQuestionLabel             = new Label();
            mainQuestionLabel.Location    = new Point(50, 53);
            mainQuestionLabel.Visible     = true;
            mainQuestionLabel.MaximumSize = new Size(700, 0);
            mainQuestionLabel.AutoSize    = true;
            mainQuestionLabel.Text        = "○/✕ 문제입니다. 각각의 문제의 올바른 답 버튼을 눌러주세요.";
            mainQuestionLabel.Font        = customFonts.TextBoxFont();
            this.Controls.Add(mainQuestionLabel);
            mainQuestionLabel.Click += mainQuestionLabel_Click_1;

            subQuestionPanelsList = new List <SubQuestionPanel>();
        }
Exemplo n.º 3
0
        public ExamSubQuestionPanel(CustomFonts customFonts, string question, int score) : base()
        {
            questionLabel          = new Label();
            questionLabel.Text     = question;
            questionLabel.AutoSize = true;
            questionLabel.Font     = customFonts.TextBoxFont();
            this.Controls.Add(questionLabel);

            examScorePanel = new ScorePanel(customFonts);
            examScorePanel.ScoreTextBox.ReadOnly = true;
            this.Controls.Add(examScorePanel);
            examScorePanel.ScoreTextBox.Text = score.ToString();

            studentScorePanel = new ScorePanel(customFonts);
            studentScorePanel.ScoreTextBox.Text = "0";
            studentScorePanel.ScoreLabel.Text   = "[           점]";
            studentScorePanel.Visible           = false;
            this.Controls.Add(studentScorePanel);
        }
Exemplo n.º 4
0
        public SubQuestionPanel(CustomFonts customFonts) : base()
        {
            questionTextBox            = new TextBox();
            questionTextBox.Multiline  = true;
            questionTextBox.ScrollBars = ScrollBars.Vertical;
            questionTextBox.Font       = customFonts.TextBoxFont();
            this.Controls.Add(questionTextBox);

            questionLabel          = new Label();
            questionLabel.AutoSize = true;
            questionLabel.Visible  = false;
            questionLabel.Font     = customFonts.TextBoxFont();
            this.Controls.Add(questionLabel);

            examScorePanel = new ScorePanel(customFonts);
            this.Controls.Add(examScorePanel);

            deleteButton = new QuestionDeleteButton(customFonts);
            this.Controls.Add(deleteButton);
        }