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 MultipleChoiceQuestionPanel(CustomFonts customFonts) : base(customFonts)
        {
            this.customFonts = customFonts;
            this.Size        = new Size(645, 160);

            answer = -1;
            Type   = 3;

            addButton          = new AddExampleButton(customFonts);
            addButton.Location = new Point(420, 110);
            this.Controls.Add(addButton);
            addButton.Click += addButton_Click_1;

            choicePanelList = new List <MultipleChoicePanel>();

            QuestionTextBox.Size       = new System.Drawing.Size(500, 100);
            QuestionTextBox.LostFocus += questionTextBox_LostFocus_1;

            QuestionLabel.MaximumSize = new System.Drawing.Size(500, 0);
            QuestionLabel.Location    = new Point(0, 10);
            QuestionLabel.Click      += questionLabel_Click_1;

            ExamScorePanel.Location = new Point(520, (this.Height - ExamScorePanel.Height) / 2);

            DeleteButton.Location = new Point(605, (this.Height - DeleteButton.Height) / 2);
        }
        public MultipleChoicePanel(CustomFonts customFonts) : base()
        {
            this.Size = new Size(450, 50);

            exampleRadioButton          = new RadioButton();
            exampleRadioButton.Font     = customFonts.TextBoxFont();
            exampleRadioButton.Size     = new Size(15, 28);
            exampleRadioButton.Location = new Point(0, 11);
            this.Controls.Add(exampleRadioButton);

            exampleLabel             = new Label();
            exampleLabel.MaximumSize = new Size(390, 0);
            exampleLabel.Location    = new Point(15, 0);
            exampleLabel.AutoSize    = true;
            exampleLabel.Font        = customFonts.TextBoxFont();
            exampleLabel.Visible     = false;
            this.Controls.Add(exampleLabel);
            exampleLabel.Click += exampleLabel_Click_1;

            exampleTextBox            = new TextBox();
            exampleTextBox.Font       = customFonts.TextBoxFont();
            exampleTextBox.Size       = new Size(390, 50);
            exampleTextBox.Location   = new Point(15, 0);
            exampleTextBox.Multiline  = true;
            exampleTextBox.ScrollBars = ScrollBars.Vertical;
            this.Controls.Add(exampleTextBox);
            exampleTextBox.BringToFront();
            exampleTextBox.LostFocus += exampleTextBox_LostFocus_1;

            deleteButton          = new QuestionDeleteButton(customFonts);
            deleteButton.Location = new Point(410, 11);
            this.Controls.Add(DeleteButton);
        }
        public ChatContentPanel(CustomFonts customFonts, string content, int type) : base()
        {
            this.type = type;

            contentLabel             = new Label();
            contentLabel.Location    = new Point(5, 5);
            contentLabel.Text        = content;
            contentLabel.ForeColor   = Color.White;
            contentLabel.MaximumSize = new Size(180, 0);
            contentLabel.AutoSize    = true;
            contentLabel.Font        = customFonts.NormalFont();
            this.Controls.Add(contentLabel);

            if (type == 0)
            {
                this.BackColor         = Color.FromArgb(((int)(((byte)(103)))), ((int)(((byte)(55)))), ((int)(((byte)(113)))));
                contentLabel.ForeColor = Color.White;
            }
            else
            {
                this.BackColor         = Color.White;
                contentLabel.ForeColor = Color.Black;
            }

            this.Size = new Size(contentLabel.Width + 10, contentLabel.Height + 10);
        }
Beispiel #5
0
        public ShortAnswerPanel(CustomFonts customFonts) : base()
        {
            this.Size = new Size(200, 28);

            textLabel          = new Label();
            textLabel.Size     = new Size(30, 21);
            textLabel.Location = new Point(0, 3);
            textLabel.Text     = "답:";
            textLabel.Font     = customFonts.TextBoxFont();
            this.Controls.Add(textLabel);

            answerTextBox          = new TextBox();
            answerTextBox.Size     = new Size(170, 28);
            answerTextBox.Font     = customFonts.TextBoxFont();
            answerTextBox.Location = new Point(30, 0);
            this.Controls.Add(answerTextBox);
            answerTextBox.LostFocus += answerTextBox_LostFocus_1;
            answerTextBox.MouseDown += answerTextBox_MouseDown_1;

            answerLabel          = new Label();
            answerLabel.Size     = new Size(170, 20);
            answerLabel.Font     = customFonts.TextBoxFont();
            answerLabel.Location = new Point(30, 3);
            answerLabel.Visible  = false;
            this.Controls.Add(answerLabel);
            answerLabel.Click += answerLabel_Click_1;
        }
Beispiel #6
0
        // 로그인 뷰를 위한 TopBarPanel 생성자
        public TopBarPanel(CustomFonts customFonts, Boolean isLoginView) : base()
        {
            this.Size      = new Size(960, 28);
            this.BackColor = Color.FromArgb(51, 71, 97);

            exitButton           = new ExitButton(customFonts);
            exitButton.Location  = new Point(930, 0);
            exitButton.ForeColor = Color.White;
            this.Controls.Add(exitButton);

            minimizeButton           = new MinimizeButton(customFonts);
            minimizeButton.Location  = new Point(900, 0);
            minimizeButton.ForeColor = Color.White;
            this.Controls.Add(minimizeButton);
            minimizeButton.Click += minimizeButton_Click_1;

            tabNameLabel           = new Label();
            tabNameLabel.Text      = "ExamDirector";
            tabNameLabel.Location  = new Point(5, 5);
            tabNameLabel.Font      = customFonts.NormalFont();
            tabNameLabel.ForeColor = Color.White;
            this.Controls.Add(tabNameLabel);

            isMouseDown     = false;
            this.MouseDown += mouseDown_1;
            this.MouseMove += mouseMove_1;
            this.MouseUp   += mouseUp_1;
        }
Beispiel #7
0
        public ChatPanel(CustomFonts customFonts) : base()
        {
            this.customFonts = customFonts;
            this.Size        = new Size(300, 400);
            this.BackColor   = Color.White;

            headerPanel           = new Panel();
            headerPanel.Size      = new Size(300, 28);
            headerPanel.BackColor = Color.BlueViolet;
            this.Controls.Add(headerPanel);

            headerLabel           = new Label();
            headerLabel.Font      = customFonts.NormalFont();
            headerLabel.Text      = "채팅 문의";
            headerLabel.Size      = new Size(100, 14);
            headerLabel.Location  = new Point(10, 7);
            headerLabel.ForeColor = Color.White;
            headerPanel.Controls.Add(headerLabel);

            minimizeBtn           = new MinimizeButton(customFonts);
            minimizeBtn.Location  = new Point(270, 0);
            minimizeBtn.ForeColor = Color.White;
            headerPanel.Controls.Add(minimizeBtn);

            mainPanel            = new Panel();
            mainPanel.Size       = new Size(298, 300);
            mainPanel.Location   = new Point(1, 28);
            mainPanel.BackColor  = Color.FromArgb(((int)(((byte)(245)))), ((int)(((byte)(245)))), ((int)(((byte)(245)))));
            mainPanel.AutoScroll = true;
            this.Controls.Add(mainPanel);

            inputPanel           = new Panel();
            inputPanel.Size      = new Size(298, 71);
            inputPanel.Location  = new Point(1, 328);
            inputPanel.BackColor = Color.White;
            this.Controls.Add(inputPanel);

            inputTextBox             = new TextBox();
            inputTextBox.Font        = customFonts.NormalFont();
            inputTextBox.BorderStyle = BorderStyle.None;
            inputTextBox.Multiline   = true;
            inputTextBox.Size        = new Size(210, 51);
            inputTextBox.Location    = new Point(10, 10);
            inputPanel.Controls.Add(inputTextBox);
            inputTextBox.MouseDown += inputTextBox_MouseDown_1;

            sendButton           = new Button();
            sendButton.BackColor = Color.FromArgb(((int)(((byte)(178)))), ((int)(((byte)(101)))), ((int)(((byte)(255)))));
            sendButton.ForeColor = Color.White;
            sendButton.Size      = new Size(48, 30);
            sendButton.Location  = new Point(235, 20);
            sendButton.Text      = "전 송";
            sendButton.Font      = customFonts.SmallFont();
            sendButton.FlatAppearance.BorderSize = 0;
            sendButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            inputPanel.Controls.Add(sendButton);

            chatContentPanelList = new List <ChatContentPanel>();
        }
 public AddExampleButton(CustomFonts customFonts) : base()
 {
     Size      = new System.Drawing.Size(80, 28);
     Font      = customFonts.NormalFont();
     Text      = "+ 보기 추가";
     BackColor = Color.White;
     FlatAppearance.BorderSize = 1;
     FlatStyle = System.Windows.Forms.FlatStyle.Flat;
 }
Beispiel #9
0
 public AddSubQuestionButton(CustomFonts customFonts) : base()
 {
     // addSubQuestionButton
     this.Text      = "+ 하위 문제";
     this.Size      = new Size(100, 27);
     this.FlatStyle = FlatStyle.Flat;
     this.FlatAppearance.BorderSize = 1;
     this.Font = customFonts.TextBoxFont();
 }
Beispiel #10
0
        public ChatPanel(CustomFonts customFonts, string studentID, string studentName) : base()
        {
            this.customFonts = customFonts;
            this.Size        = new Size(328, 350);
            this.BackColor   = Color.White;

            headerPanel           = new Panel();
            headerPanel.Size      = new Size(328, 28);
            headerPanel.BackColor = Color.BlueViolet;
            this.Controls.Add(headerPanel);

            headerLabel           = new Label();
            headerLabel.Font      = customFonts.NormalFont();
            headerLabel.Text      = studentID + " " + studentName;
            headerLabel.Size      = new Size(200, 14);
            headerLabel.Location  = new Point(10, 7);
            headerLabel.ForeColor = Color.White;
            headerPanel.Controls.Add(headerLabel);

            mainPanel            = new Panel();
            mainPanel.Size       = new Size(326, 250);
            mainPanel.Location   = new Point(1, 28);
            mainPanel.BackColor  = Color.FromArgb(((int)(((byte)(245)))), ((int)(((byte)(245)))), ((int)(((byte)(245)))));
            mainPanel.AutoScroll = true;
            this.Controls.Add(mainPanel);

            inputPanel           = new Panel();
            inputPanel.Size      = new Size(326, 71);
            inputPanel.Location  = new Point(1, 278);
            inputPanel.BackColor = Color.White;
            this.Controls.Add(inputPanel);

            inputTextBox             = new TextBox();
            inputTextBox.Font        = customFonts.NormalFont();
            inputTextBox.BorderStyle = BorderStyle.None;
            inputTextBox.Multiline   = true;
            inputTextBox.Size        = new Size(238, 51);
            inputTextBox.Location    = new Point(10, 10);
            inputPanel.Controls.Add(inputTextBox);
            inputTextBox.MouseDown += inputTextBox_MouseDown_1;

            sendButton           = new Button();
            sendButton.BackColor = Color.FromArgb(((int)(((byte)(178)))), ((int)(((byte)(101)))), ((int)(((byte)(255)))));
            sendButton.ForeColor = Color.White;
            sendButton.Size      = new Size(48, 30);
            sendButton.Location  = new Point(263, 20);
            sendButton.Text      = "전 송";
            sendButton.Font      = customFonts.SmallFont();
            sendButton.FlatAppearance.BorderSize = 0;
            sendButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            inputPanel.Controls.Add(sendButton);

            this.studentNumber = studentID;

            chatContentPanelList = new List <ChatContentPanel>();
        }
 public QuestionDeleteButton(CustomFonts customFonts) : base()
 {
     Size      = new System.Drawing.Size(40, 28);
     Font      = customFonts.SmallFont();
     Text      = "제 거";
     ForeColor = Color.White;
     BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(17)))), ((int)(((byte)(35)))));
     FlatAppearance.BorderSize = 0;
     FlatStyle = System.Windows.Forms.FlatStyle.Flat;
 }
Beispiel #12
0
 public ShortCutButton(CustomFonts customFonts, int number) : base()
 {
     ForeColor = Color.Black;
     BackColor = Color.White;
     Text      = number.ToString();
     Font      = customFonts.NormalFont();
     Size      = new System.Drawing.Size(75, 25);
     FlatAppearance.BorderSize = 1;
     FlatStyle = System.Windows.Forms.FlatStyle.Flat;
 }
Beispiel #13
0
        public EssayAnswerPanel(CustomFonts customFonts) : base()
        {
            this.Size = new Size(500, 280);

            maxLengthLabel           = new Label();
            maxLengthLabel.BackColor = Color.White;
            maxLengthLabel.Text      = "최대 글자 수:";
            maxLengthLabel.Size      = new Size(62, 13);
            maxLengthLabel.Location  = new Point(380, 10);
            maxLengthLabel.Font      = customFonts.SmallFont();
            this.Controls.Add(maxLengthLabel);

            maxLengthTextBox             = new TextBox();
            maxLengthTextBox.Text        = "4000";
            maxLengthTextBox.TextAlign   = HorizontalAlignment.Center;
            maxLengthTextBox.BackColor   = Color.Beige;
            maxLengthTextBox.MaxLength   = 5;
            maxLengthTextBox.Size        = new Size(40, 13);
            maxLengthTextBox.BorderStyle = System.Windows.Forms.BorderStyle.None;
            maxLengthTextBox.Location    = new Point(442, 10);
            maxLengthTextBox.Font        = customFonts.SmallFont();
            this.Controls.Add(maxLengthTextBox);
            maxLengthTextBox.KeyPress  += maxLengthTextBox_KeyPress_1;
            maxLengthTextBox.LostFocus += maxLengthTextBox_LostFocus_1;
            maxLengthTextBox.MouseDown += maxLengthTextBox_MouseDown_1;

            textLabel          = new Label();
            textLabel.Text     = "답:";
            textLabel.Size     = new Size(30, 21);
            textLabel.Location = new Point(0, 30);
            textLabel.Font     = customFonts.TextBoxFont();
            this.Controls.Add(textLabel);

            answerLabel             = new Label();
            answerLabel.Location    = new Point(30, 30);
            answerLabel.MaximumSize = new Size(470, 0);
            answerLabel.Visible     = false;
            answerLabel.AutoSize    = true;
            answerLabel.Text        = "";
            answerLabel.Font        = customFonts.TextBoxFont();
            this.Controls.Add(answerLabel);
            answerLabel.Click += answerLabel_Click_1;

            answerTextBox            = new TextBox();
            answerTextBox.Size       = new Size(470, 250);
            answerTextBox.Location   = new Point(30, 27);
            answerTextBox.MaxLength  = 4000;
            answerTextBox.ScrollBars = ScrollBars.Vertical;
            answerTextBox.Font       = customFonts.TextBoxFont();
            answerTextBox.Multiline  = true;
            this.Controls.Add(answerTextBox);
            answerTextBox.LostFocus += answerTextBox_LostFocus_1;
            answerTextBox.MouseDown += answerTextBox_MouseDown_1;
        }
Beispiel #14
0
 public MinimizeButton(CustomFonts customFonts) : base()
 {
     this.FlatAppearance.BorderSize = 0;
     this.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.Name      = "minimizeButton";
     this.Size      = new System.Drawing.Size(30, 28);
     this.TabIndex  = 1;
     this.TabStop   = false;
     this.Text      = "_";
     this.Font      = customFonts.LabelFont();
 }
 public ExitButton(CustomFonts customFonts) : base()
 {
     this.FlatAppearance.BorderSize = 0;
     this.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.Name      = "exitButton";
     this.Size      = new System.Drawing.Size(30, 28);
     this.TabIndex  = 0;
     this.TabStop   = false;
     this.Text      = "✕";
     this.Font      = customFonts.LabelFont();
     this.Click    += exitButton_Click_1;
 }
        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>();
        }
Beispiel #17
0
        public NoticePanel(CustomFonts customFonts)
        {
            headerPanel  = new Panel();
            contentPanel = new Panel();
            headerLabel  = new Label();
            noticeLabel  = new Label();
            OKButton     = new Button();

            this.Size      = new Size(685, 340);
            this.BackColor = Color.White;
            this.Controls.Add(headerPanel);
            this.Controls.Add(contentPanel);
            this.Controls.Add(OKButton);

            headerPanel.Size      = new Size(681, 28);
            headerPanel.BackColor = Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(33)))), ((int)(((byte)(59)))));
            headerPanel.Location  = new Point(2, 2);
            headerPanel.Controls.Add(headerLabel);

            headerLabel.Text      = "공지사항";
            headerLabel.ForeColor = Color.White;
            headerLabel.Font      = customFonts.LabelFont();
            headerLabel.Location  = new Point(3, 3);

            contentPanel.Size       = new Size(681, 253);
            contentPanel.Location   = new Point(2, 30);
            contentPanel.BackColor  = Color.White;
            contentPanel.AutoScroll = true;
            contentPanel.Controls.Add(noticeLabel);

            noticeLabel.Text        = "- 혼난다.\n- 혼난다.\n- 혼난다.\n- 혼난다.\n- 혼난다.\n- 혼난다.\n- 혼난다.\n- 혼난다.\n- 혼난다.\n- 혼난다.\n";
            noticeLabel.Font        = customFonts.TextBoxFont();
            noticeLabel.AutoSize    = true;
            noticeLabel.MaximumSize = new Size(671, 0);
            noticeLabel.Location    = new Point(5, 5);

            OKButton.Size      = new Size(91, 40);
            OKButton.Location  = new Point(295, 288);
            OKButton.Font      = customFonts.LabelFont();
            OKButton.Text      = "확   인";
            OKButton.BackColor = Color.FromArgb(((int)(((byte)(158)))), ((int)(((byte)(33)))), ((int)(((byte)(59)))));
            OKButton.FlatAppearance.BorderSize = 0;
            OKButton.FlatStyle = FlatStyle.Flat;
            OKButton.ForeColor = Color.White;
            OKButton.Click    += OKButton_Click_1;
        }
Beispiel #18
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);
        }
Beispiel #19
0
        public CheatTypePanel(CustomFonts customFonts, Color cheatColor, string cheatType)
        {
            cheatColorPanel = new Panel();
            cheatTypeLabel  = new Label();

            this.Size = new Size(140, 30);
            this.Controls.Add(cheatColorPanel);
            this.Controls.Add(cheatTypeLabel);

            cheatColorPanel.Size      = new Size(20, 20);
            cheatColorPanel.Location  = new Point(0, 5);
            cheatColorPanel.BackColor = cheatColor;

            cheatTypeLabel.Size      = new Size(115, 21);
            cheatTypeLabel.Text      = cheatType;
            cheatTypeLabel.Font      = customFonts.TextBoxFont();
            cheatTypeLabel.TextAlign = ContentAlignment.MiddleLeft;
            cheatTypeLabel.Location  = new Point(25, 5);
        }
Beispiel #20
0
        public StudentWebRTCPanel(CustomFonts customFonts, string student_id, string student_name, string room_id)
        {
            this.timeCount  = 0;
            this.student_id = student_id;
            this.room_id    = room_id;

            webrtcPanel  = new Panel();
            infoPanel    = new Panel();
            infoLabel    = new Label();
            statusButton = new Button();

            this.Size = new Size(300, 230);
            this.Controls.Add(webrtcPanel);
            this.Controls.Add(infoPanel);

            webrtcPanel.Size     = new Size(296, 198);
            webrtcPanel.Location = new Point(2, 2);

            initwebrtc();

            infoPanel.Size      = new Size(296, 28);
            infoPanel.Location  = new Point(2, 200);
            infoPanel.BackColor = Color.White;
            infoPanel.Controls.Add(infoLabel);
            infoPanel.Controls.Add(statusButton);

            infoLabel.Size     = new Size(230, 20);
            infoLabel.Location = new Point(5, 5);
            infoLabel.Text     = student_id + " " + student_name;
            infoLabel.Font     = customFonts.TextBoxFont();

            statusButton.Size      = new Size(40, 22);
            statusButton.Location  = new Point(248, 3);
            statusButton.Font      = customFonts.SmallFont();
            statusButton.Text      = "제 한";
            statusButton.ForeColor = Color.White;
            statusButton.BackColor = Color.DarkGray;
            statusButton.FlatAppearance.BorderSize = 0;
            statusButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;

            isBaned = false;
        }
Beispiel #21
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);
        }
        public ShortAnswerQuestionPanel(CustomFonts customFonts) : base(customFonts)
        {
            this.Size = new Size(645, 147);

            Type = 1;

            answerPanel          = new ShortAnswerPanel(customFonts);
            answerPanel.Location = new Point(300, 120);
            this.Controls.Add(answerPanel);

            QuestionTextBox.Size       = new System.Drawing.Size(500, 100);
            QuestionTextBox.LostFocus += questionTextBox_LostFocus_1;

            QuestionLabel.MaximumSize = new System.Drawing.Size(500, 0);
            QuestionLabel.Click      += questionLabel_Click_1;

            ExamScorePanel.Location = new Point(520, (this.Height - ExamScorePanel.Height) / 2);

            DeleteButton.Location = new Point(605, (this.Height - DeleteButton.Height) / 2);
        }
        public ExamShortAnswerQuestionPanel(CustomFonts customFonts, string question, int score) : base(customFonts, question, score)
        {
            int height;

            this.Size   = new Size(725, 147);
            this.Click += Click_1;

            Type = 1;

            answerPanel = new ShortAnswerPanel(customFonts);
            this.Controls.Add(answerPanel);

            QuestionLabel.MaximumSize = new System.Drawing.Size(500, 0);

            QuestionLabel.Location = new Point(0, 10);
            answerPanel.Location   = new Point(300, QuestionLabel.Location.Y + QuestionLabel.Height + 20);
            height                     = answerPanel.Location.Y + answerPanel.Height;
            this.Height                = height;
            ExamScorePanel.Location    = new Point(520, (height - ExamScorePanel.Height) / 2);
            StudentScorePanel.Location = new Point(600, (height - StudentScorePanel.Height) / 2);
        }
        public ExamMultipleChoicePanel(CustomFonts customFonts, string question) : base()
        {
            this.Size = new Size(450, 50);

            exampleRadioButton          = new RadioButton();
            exampleRadioButton.Font     = customFonts.TextBoxFont();
            exampleRadioButton.Size     = new Size(15, 28);
            exampleRadioButton.Location = new Point(0, 11);
            this.Controls.Add(exampleRadioButton);

            exampleLabel             = new Label();
            exampleLabel.MaximumSize = new Size(390, 0);
            exampleLabel.Location    = new Point(15, 0);
            exampleLabel.AutoSize    = true;
            exampleLabel.Font        = customFonts.TextBoxFont();
            this.Controls.Add(exampleLabel);
            exampleLabel.Text = question;

            this.Height                 = exampleLabel.Height + 10;
            exampleLabel.Location       = new Point(15, (this.Height - exampleLabel.Height) / 2);
            exampleRadioButton.Location = new Point(0, (this.Height - exampleRadioButton.Height) / 2);
        }
Beispiel #25
0
        public ExamOXPanel(CustomFonts customFonts, string question, int score) : base(customFonts, question, score)
        {
            int margin = 10;
            int height;

            this.Size = new System.Drawing.Size(725, 45);

            answer = 0;

            Type = 0;

            oButton      = new Button();
            oButton.Text = "○";
            oButton.Size = new System.Drawing.Size(30, 28);
            oButton.FlatAppearance.BorderSize = 0;
            oButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            oButton.Font      = customFonts.TextBoxFont();
            this.Controls.Add(oButton);
            oButton.Click += oButton_Click_1;

            xButton      = new Button();
            xButton.Text = "✕";
            xButton.Size = new System.Drawing.Size(30, 28);
            xButton.FlatAppearance.BorderSize = 0;
            xButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            xButton.Font      = customFonts.LabelFont();
            this.Controls.Add(xButton);
            xButton.Click += xButton_Click_1;

            QuestionLabel.MaximumSize = new System.Drawing.Size(450, 0);

            QuestionLabel.Location = new Point(0, 10);
            height                     = margin * 2 + QuestionLabel.Height;
            this.Height                = height;
            oButton.Location           = new Point(460, (height - oButton.Height) / 2);
            xButton.Location           = new Point(490, (height - xButton.Height) / 2);
            ExamScorePanel.Location    = new Point(520, (height - ExamScorePanel.Height) / 2);
            StudentScorePanel.Location = new Point(600, (height - StudentScorePanel.Height) / 2);
        }
        public ExamEssayQuestionPanel(CustomFonts customFonts, string question, int score, int maxLength) : base(customFonts, question, score)
        {
            this.Size   = new Size(725, 400);
            this.Click += Click_1;

            Type = 2;

            answerPanel          = new EssayAnswerPanel(customFonts);
            answerPanel.Location = new Point(0, 120);
            this.Controls.Add(answerPanel);
            answerPanel.MaxLengthTextBox.Text     = maxLength.ToString();
            answerPanel.MaxLengthTextBox.ReadOnly = true;
            answerPanel.AnswerTextBox.MaxLength   = maxLength;
            answerPanel.AnswerTextBox.LostFocus  += answerTextBox_LostFocus_2;
            answerPanel.AnswerLabel.Click        += answerLabel_Click_2;

            QuestionLabel.MaximumSize = new System.Drawing.Size(500, 0);
            QuestionLabel.Location    = new Point(0, 10);
            answerPanel.Location      = new Point(0, QuestionLabel.Location.Y + QuestionLabel.Height + 20);
            this.Height                = answerPanel.Location.Y + answerPanel.Height;
            ExamScorePanel.Location    = new Point(520, (this.Height - ExamScorePanel.Height) / 2);
            StudentScorePanel.Location = new Point(600, (this.Height - StudentScorePanel.Height) / 2);
        }
        public ScorePanel(CustomFonts customFonts) : base()
        {
            this.Size = new Size(80, 28);

            scoreLabel          = new Label();
            scoreLabel.Location = new Point(0, 4);
            scoreLabel.Text     = "(           점)";
            scoreLabel.Font     = customFonts.LabelFont();
            this.Controls.Add(scoreLabel);

            scoreTextBox             = new TextBox();
            scoreTextBox.Size        = new Size(40, 28);
            scoreTextBox.BackColor   = Color.Beige;
            scoreTextBox.Text        = "10";
            scoreTextBox.Font        = customFonts.LabelFont();
            scoreTextBox.Location    = new Point(14, 5);
            scoreTextBox.BorderStyle = System.Windows.Forms.BorderStyle.None;
            scoreTextBox.TextAlign   = HorizontalAlignment.Center;
            this.Controls.Add(ScoreTextBox);
            scoreTextBox.BringToFront();
            scoreTextBox.KeyPress  += scoreTextBox_KeyPress_1;
            scoreTextBox.LostFocus += scoreTextBox_LostFocus_1;
        }
Beispiel #28
0
        public QuestionKindPanel(CustomFonts customFonts) : base()
        {
            string[] questionItems = { "○/✕", "단답형", "서술형", "선다형" };

            this.Size = new Size(157, 27);

            questionKindLabel          = new Label();
            questionKindLabel.Location = new Point(0, 4);
            questionKindLabel.Size     = new Size(82, 21);
            questionKindLabel.Text     = "출제 유형:";
            questionKindLabel.Font     = customFonts.LabelFont();
            Controls.Add(this.questionKindLabel);

            questionKindComboBox               = new ComboBox();
            questionKindComboBox.Location      = new System.Drawing.Point(82, 0);
            questionKindComboBox.Name          = "questionKindComboBox";
            questionKindComboBox.Size          = new System.Drawing.Size(75, 20);
            questionKindComboBox.Font          = customFonts.LabelFont();
            questionKindComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.Controls.Add(this.questionKindComboBox);

            questionKindComboBox.Items.AddRange(questionItems);
            questionKindComboBox.SelectedIndex = 0;
        }
        public ExamMultipleChoiceQuestionPanel(CustomFonts customFonts, string question, int score, string[] multipleQuestions, Boolean isStudent) : base(customFonts, question, score)
        {
            int count;

            this.isStudent = isStudent;

            this.customFonts = customFonts;
            this.Size        = new Size(725, 160);

            answer = -1;
            Type   = 3;

            QuestionLabel.MaximumSize = new System.Drawing.Size(500, 0);
            QuestionLabel.Location    = new Point(0, 10);

            choicePanelList = new List <ExamMultipleChoicePanel>();
            setMultipleQuestions(multipleQuestions);

            count       = choicePanelList.Count;
            this.Height = choicePanelList[count - 1].Location.Y + choicePanelList[count - 1].Height + 20;

            ExamScorePanel.Location    = new Point(520, (this.Height - ExamScorePanel.Height) / 2);
            StudentScorePanel.Location = new Point(600, (this.Height - StudentScorePanel.Height) / 2);
        }
Beispiel #30
0
        public ExamPageNavigationPanel(CustomFonts customFonts) : base()
        {
            this.Name     = "pageNavigationPanel";
            this.Size     = new System.Drawing.Size(885, 42);
            this.TabIndex = 2;
            //
            // pageLeftButton
            //
            this.pageLeftButton = new Button();
            this.pageLeftButton.FlatAppearance.BorderSize = 0;
            this.pageLeftButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.pageLeftButton.ForeColor = System.Drawing.Color.Gray;
            this.pageLeftButton.Location  = new System.Drawing.Point(362, 1);
            this.pageLeftButton.Name      = "pageLeftButton";
            this.pageLeftButton.Size      = new System.Drawing.Size(40, 40);
            this.pageLeftButton.Text      = "<";
            //
            // pageRightButton
            //
            this.pageRightButton = new Button();
            this.pageRightButton.FlatAppearance.BorderSize = 0;
            this.pageRightButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.pageRightButton.ForeColor = System.Drawing.Color.Gray;
            this.pageRightButton.Location  = new System.Drawing.Point(482, 1);
            this.pageRightButton.Name      = "pageRightButton";
            this.pageRightButton.Size      = new System.Drawing.Size(40, 40);
            this.pageRightButton.Text      = ">";
            //
            // nowPagePanel
            //
            this.nowPagePanel           = new Panel();
            this.nowPagePanel.BackColor = System.Drawing.Color.White;
            this.nowPagePanel.Location  = new System.Drawing.Point(409, 8);
            this.nowPagePanel.Name      = "nowPagePanel";
            this.nowPagePanel.Size      = new System.Drawing.Size(28, 26);
            //
            // nowPageTextBox
            //
            this.nowPageTextBox             = new TextBox();
            this.nowPageTextBox.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.nowPageTextBox.Location    = new System.Drawing.Point(5, 4);
            this.nowPageTextBox.Name        = "nowPageTextBox";
            this.nowPageTextBox.Size        = new System.Drawing.Size(18, 14);
            this.nowPageTextBox.Text        = "1";
            this.nowPageTextBox.TextAlign   = System.Windows.Forms.HorizontalAlignment.Center;
            //
            // pageSlashLabel
            //
            this.pageSlashLabel          = new Label();
            this.pageSlashLabel.Location = new System.Drawing.Point(437, 10);
            this.pageSlashLabel.Name     = "pageSlashLabel";
            this.pageSlashLabel.Size     = new System.Drawing.Size(10, 21);
            this.pageSlashLabel.Text     = "/";
            //
            // wholePageLabel
            //
            this.wholePageLabel          = new Label();
            this.wholePageLabel.Size     = new Size(36, 21);
            this.wholePageLabel.Location = new Point(449, 12);
            this.wholePageLabel.Text     = "1";
            this.Controls.Add(this.wholePageLabel);

            //
            // addPageButtonnowPagePanel
            //
            this.addPageButton           = new Button();
            this.addPageButton.BackColor = System.Drawing.Color.BlanchedAlmond;
            this.addPageButton.FlatAppearance.BorderSize = 0;
            this.addPageButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.addPageButton.Location  = new System.Drawing.Point(655, 0);
            this.addPageButton.Name      = "addPageButton";
            this.addPageButton.Size      = new System.Drawing.Size(115, 42);
            this.addPageButton.Text      = "+ 페이지 추가";
            this.addPageButton.UseVisualStyleBackColor = false;
            //
            // removePageButton
            //
            this.removePageButton           = new Button();
            this.removePageButton.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(17)))), ((int)(((byte)(35)))));
            this.removePageButton.FlatAppearance.BorderSize = 0;
            this.removePageButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.removePageButton.ForeColor = System.Drawing.Color.White;
            this.removePageButton.Location  = new System.Drawing.Point(770, 0);
            this.removePageButton.Name      = "removePageButton";
            this.removePageButton.Size      = new System.Drawing.Size(115, 42);
            this.removePageButton.Text      = "- 페이지 제거";
            this.removePageButton.UseVisualStyleBackColor = false;

            this.Controls.Add(this.pageLeftButton);
            this.Controls.Add(this.pageRightButton);
            this.Controls.Add(this.nowPagePanel);
            this.Controls.Add(this.pageSlashLabel);
            this.Controls.Add(this.wholePageLabel);
            this.Controls.Add(this.addPageButton);
            this.Controls.Add(this.removePageButton);
            this.nowPagePanel.Controls.Add(this.nowPageTextBox);

            this.pageLeftButton.Font   = customFonts.LabelFont();
            this.pageRightButton.Font  = customFonts.LabelFont();
            this.nowPageTextBox.Font   = customFonts.TextBoxFont();
            this.pageSlashLabel.Font   = customFonts.LabelFont();
            this.wholePageLabel.Font   = customFonts.TextBoxFont();
            this.addPageButton.Font    = customFonts.TextBoxFont();
            this.removePageButton.Font = customFonts.TextBoxFont();
        }