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 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; }
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; }
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>(); }
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 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(); }
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 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); }
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; }
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); }
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); }
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; }
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 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(); }