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