Exemple #1
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;
        }
Exemple #2
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>();
        }
Exemple #3
0
        // 최소화 버튼
        private void minimizeButton_Click_1(object sender, EventArgs e)
        {
            MinimizeButton minimizeButton = (MinimizeButton)sender;
            TopBarPanel    topBarPanel    = (TopBarPanel)minimizeButton.Parent;
            Form           form           = (Form)topBarPanel.Parent;

            form.WindowState = FormWindowState.Minimized;
        }