private void StudentScoreCheckView_Load(object sender, EventArgs e)
        {
            // Font setting
            CustomFonts customFonts = new CustomFonts();

            // NormalFont : 10f
            // LabelFont : 13f
            // TextBoxFont : 12f
            // SmallFont : 8f
            // TitleFont: 20f
            // SubTitleFont : 17f

            lectureTable.Font    = customFonts.NormalFont();
            scoreCheckLabel.Font = customFonts.TitleFont();

            // PictureBox Setting
            scorePictureBox.SizeMode = PictureBoxSizeMode.StretchImage;
            scorePictureBox.Image    = System.Drawing.Image.FromFile("./src/Assets/Images/score.png");


            // 테이블 Sample 값 추가

            lectureTable.Rows.Add("운영체제", "중간고사", "2020/4/27 16:00~17:30", "78 / 100", "65", "30%");
            lectureTable.Rows.Add("데이터베이스", "기말고사", "2020/6/29 13:00~14:30", "56 / 100", "67", "35%");
            lectureTable.Rows.Add("Unix프로그래밍", "중간고사", "2020/4/25 16:00~17:30", "78 / 100", "65", "30%");
            lectureTable.Rows.Add("컴퓨터구조", "중간고사", "2020/4/27 16:00~17:30", "78 / 100", "65", "30%");
            lectureTable.Rows.Add("운영체제", "중간고사", "2020/4/27 16:00~17:30", "78 / 100", "65", "30%");
            lectureTable.Rows.Add("데이터베이스", "기말고사", "2020/6/29 13:00~14:30", "56 / 100", "67", "35%");
            lectureTable.Rows.Add("Unix프로그래밍", "중간고사", "2020/4/25 16:00~17:30", "78 / 100", "65", "30%");
            lectureTable.Rows.Add("컴퓨터구조", "중간고사", "2020/4/27 16:00~17:30", "78 / 100", "65", "30%");
            lectureTable.Rows.Add("운영체제", "중간고사", "2020/4/27 16:00~17:30", "78 / 100", "65", "30%");
            lectureTable.Rows.Add("데이터베이스", "기말고사", "2020/6/29 13:00~14:30", "56 / 100", "67", "35%");
            lectureTable.Rows.Add("Unix프로그래밍", "중간고사", "2020/4/25 16:00~17:30", "78 / 100", "65", "30%");
            lectureTable.Rows.Add("컴퓨터구조", "중간고사", "2020/4/27 16:00~17:30", "78 / 100", "65", "30%");
            lectureTable.Rows.Add("운영체제", "퀴즈1", "2020/4/27 16:00~17:30", "78 / 100", "65", "30%");
            lectureTable.Rows.Add("데이터베이스", "기말고사", "2020/6/29 13:00~14:30", "56 / 100", "67", "35%");
            lectureTable.Rows.Add("Unix프로그래밍", "중간고사", "2020/4/25 16:00~17:30", "78 / 100", "65", "30%");
            lectureTable.Rows.Add("컴퓨터구조", "중간고사", "2020/4/27 16:00~17:30", "78 / 100", "65", "30%");
            lectureTable.Rows.Add("운영체제", "중간고사", "2020/4/27 16:00~17:30", "78 / 100", "65", "30%");
            lectureTable.Rows.Add("데이터베이스", "퀴즈5", "2020/6/29 13:00~14:30", "56 / 100", "67", "35%");
            lectureTable.Rows.Add("Unix프로그래밍", "중간고사", "2020/4/25 16:00~17:30", "78 / 100", "65", "30%");
            lectureTable.Rows.Add("컴퓨터구조", "퀴즈3", "2020/4/27 16:00~17:30", "78 / 100", "65", "30%");
            lectureTable.Rows.Add("운영체제", "중간고사", "2020/4/27 16:00~17:30", "78 / 100", "65", "30%");
            lectureTable.Rows.Add("데이터베이스", "기말고사", "2020/6/29 13:00~14:30", "56 / 100", "67", "35%");
            lectureTable.Rows.Add("Unix프로그래밍", "중간고사", "2020/4/25 16:00~17:30", "78 / 100", "65", "30%");
            lectureTable.Rows.Add("컴퓨터구조", "퀴즈4", "2020/4/27 16:00~17:30", "78 / 100", "65", "30%");
            lectureTable.Rows.Add("운영체제", "중간고사", "2020/4/27 16:00~17:30", "78 / 100", "65", "30%");
            lectureTable.Rows.Add("데이터베이스", "기말고사", "2020/6/29 13:00~14:30", "56 / 100", "67", "35%");
            lectureTable.Rows.Add("Unix프로그래밍", "중간고사", "2020/4/25 16:00~17:30", "78 / 100", "65", "30%");
            lectureTable.Rows.Add("컴퓨터구조", "중간고사", "2020/4/27 16:00~17:30", "78 / 100", "65", "30%");
            lectureTable.Rows.Add("운영체제", "퀴즈1", "2020/4/27 16:00~17:30", "78 / 100", "65", "30%");
            lectureTable.Rows.Add("데이터베이스", "기말고사", "2020/6/29 13:00~14:30", "56 / 100", "67", "35%");
            lectureTable.Rows.Add("Unix프로그래밍", "중간고사", "2020/4/25 16:00~17:30", "78 / 100", "65", "30%");
            lectureTable.Rows.Add("컴퓨터구조", "중간고사", "2020/4/27 16:00~17:30", "78 / 100", "65", "30%");

            //상단바
            this.topBarPanel          = new TopBarPanel(customFonts);
            this.topBarPanel.Location = new Point(0, 0);
            this.Controls.Add(topBarPanel);
        }
示例#2
0
        private void ProfessorScoreCheckView_Load(object sender, EventArgs e)
        {
            // Font setting
            CustomFonts customFonts = new CustomFonts();

            // NormalFont : 10f
            // LabelFont : 13f
            // TextBoxFont : 12f
            // SmallFont : 8f
            // TitleFont: 20f
            // SubTitleFont : 17f

            lectureTable.Font    = customFonts.NormalFont();
            scoreCheckLabel.Font = customFonts.TitleFont();

            // PictureBox Setting
            scorePictureBox.SizeMode = PictureBoxSizeMode.StretchImage;
            scorePictureBox.Image    = System.Drawing.Image.FromFile("./src/Assets/Images/score.png");

            loadAllExamResults();

            //상단바
            this.topBarPanel          = new TopBarPanel(customFonts);
            this.topBarPanel.Location = new Point(0, 0);
            this.Controls.Add(topBarPanel);
        }
示例#3
0
    void OnGUI()
    {
        if (!IsConstellationSelected())
        {
            StartPanel.Draw(this);
            return;
        }
        else
        {
            try
            {
                TopBarPanel.Draw(this, this, this);
                var constellationName = NodeTabPanel.Draw(ScriptDataService.OpenedScripts.ToArray());
                if (constellationName != null)
                {
                    var selectedGameObjects = Selection.gameObjects;
                    if (Application.isPlaying)
                    {
                        ScriptDataService.CloseCurrentConstellationInstance();
                        Open(ScriptDataService.OpenedScripts.ToArray()[0]);
                        previousSelectedGameObject = selectedGameObjects[0];
                    }
                    Open(constellationName);
                }
                var constellationToRemove = NodeTabPanel.ConstellationToRemove();
                EditorGUILayout.BeginHorizontal();
                if (NodeWindow == null)
                {
                    ParseScript();
                }
                NodeWindow.UpdateSize(position.width - nodeSelectorWidth - splitThickness, position.height - NodeTabPanel.GetHeight());
                NodeWindow.Draw(RequestRepaint, OnEditorEvent, ScriptDataService.GetConstellationEditorConfig(), out nodeWindowSize, out nodeWindowScrollPosition);
                DrawVerticalSplit();
                NodeSelector.Draw(nodeSelectorWidth, position.height, NodeAdded, ScriptDataService.Script.CanChangeType);
                EditorGUILayout.EndHorizontal();
                if (ScriptDataService.CloseOpenedConstellation(constellationToRemove))
                {
                    if (ScriptDataService.OpenedScripts.Count > 0)
                    {
                        Open(ScriptDataService.OpenedScripts[0]);
                    }
                    else
                    {
                        ScriptDataService.Script = null;
                    }
                }
                DrawInstancePannel();
            }
            catch (System.Exception exception)
            {
                UnexpectedError(exception.StackTrace);
            }
        }

        if (requestRepaint)
        {
            Repaint();
        }
    }
示例#4
0
        public void AllSectionsButtonClick_IsResourcePageOpen()
        {
            TopBarPanel topBarPanel = homePage.OpenTopBarPanel();

            ResourcePage resourcePage = topBarPanel.AllSectionsButtonClick();

            AllureLifecycle.Instance.Verify.That("Portal sections displayed", () => resourcePage.IsPortalSectionsDisplayed(), Is.True);
        }
        public void AllSectionsButtonClick_IsResourcePageOpen()
        {
            TopBarPanel topBarPanel = homePage.OpenTopBarPanel();

            ResourcePage resourcePage = topBarPanel.AllSectionsButtonClick();

            Assert.IsTrue(resourcePage.IsPortalSectionsDisplayed());
        }
        public void LogoClick_IsHomePageOpen()
        {
            TopBarPanel topBarPanel = homePage.OpenTopBarPanel();

            ResourcePage resourcePage = topBarPanel.AllSectionsButtonClick();

            HomePage pageHome = resourcePage.LogoClick();

            AllureLifecycle.Instance.Verify.That("News block displayed", () => pageHome.IsNewsBlockDisplayed(), Is.True);
        }
        public void LogoClick_IsHomePageOpen()
        {
            TopBarPanel topBarPanel = homePage.OpenTopBarPanel();

            ResourcePage resourcePage = topBarPanel.AllSectionsButtonClick();

            HomePage pageHome = resourcePage.LogoClick();

            Assert.IsTrue(pageHome.IsNewsBlockDisplayed());
        }
示例#8
0
        private void ProfessorExamView_Load(object sender, EventArgs e)
        {
            // 폰트
            customFonts = new CustomFonts();

            studentScreenList = new List <StudentWebRTCPanel>();

            this.examTimeLabel.Font    = customFonts.TimeLabelFont();
            this.examLectureLabel.Font = customFonts.LabelFont();
            this.examNameLabel.Font    = customFonts.LabelFont();
            this.examPercentLabel.Font = customFonts.LabelFont();

            loadExam();

            timer          = new System.Windows.Forms.Timer();
            timer.Interval = 1000;
            timer.Tick    += timer_Tick_1;
            timer.Start();

            this.noticePanel          = new ChatPanel(customFonts, "공지사항 전송", "");
            this.noticePanel.Location = new Point(18, 242);
            this.noticePanel.BringToFront();
            this.noticePanel.SendButton.Click += noticeSendButton_Click_1;
            this.studentListPanel.Controls.Add(this.noticePanel);

            this.chatPanelList = new List <ChatPanel>();
            this.nowChatPanel  = noticePanel;

            //상단바
            this.topBarPanel          = new TopBarPanel(customFonts);
            this.topBarPanel.Location = new Point(0, 0);
            this.Controls.Add(topBarPanel);

            this.examPageNavigationPanel          = new ExamPageNavigationPanel(customFonts);
            this.examPageNavigationPanel.Location = new System.Drawing.Point(8, 488);
            this.Controls.Add(this.examPageNavigationPanel);
            this.examPageNavigationPanel.AddPageButton.Visible    = false;
            this.examPageNavigationPanel.RemovePageButton.Visible = false;

            setCheatTypePanels();

            chatQueue   = new Queue <Chat>();
            studentList = new List <Student>();
            enterQueue  = new Queue <Student>();
            exitQueue   = new Queue <Student>();
            doubtQueue  = new Queue <Doubt>();

            connectWebsocket();

            exitBtn.Click       += exitBtn_Click_1;
            sendNoticeBtn.Click += sendNoticeBtn_Click_1;
        }
        private void ProfessorLectureEditView_Load(object sender, EventArgs e)
        {
            // 콤보박스 설정
            setYearComboBox(1990, 2021);
            setSemesterComboBox();

            // 이미지
            lecturePictureBox.SizeMode = PictureBoxSizeMode.StretchImage;
            lecturePictureBox.Image    = System.Drawing.Image.FromFile("./src/Assets/Images/lecture.png");

            // 폰트
            CustomFonts customFonts = new CustomFonts();

            // NormalFont : 10f
            // LabelFont : 13f
            // TextBoxFont : 12f
            // SmallFont : 8f
            // TitleFont: 20f
            // SubTitleFont : 17f

            myLectureLbl.Font   = customFonts.LabelFont();
            myLectureTable.Font = customFonts.TextBoxFont();

            lectureNameLbl.Font             = customFonts.LabelFont();
            lectureNameTextBox.Font         = customFonts.TextBoxFont();
            lectureTimeLbl.Font             = customFonts.LabelFont();
            lectureTimeTextBox.Font         = customFonts.TextBoxFont();
            lectureTotalStuentLbl.Font      = customFonts.LabelFont();
            lectureTotalStudentTextBox.Font = customFonts.TextBoxFont();
            lectureSemesterLbl.Font         = customFonts.LabelFont();
            backButton.Font    = customFonts.TextBoxFont();
            confirmBtn.Font    = customFonts.TextBoxFont();
            addLectureBtn.Font = customFonts.TextBoxFont();
            deleteBtn.Font     = customFonts.TextBoxFont();
            editBtn.Font       = customFonts.TextBoxFont();
            infoLbl.Font       = customFonts.NormalFont();

            yearComboBox.Font     = customFonts.TextBoxFont();
            semesterComboBox.Font = customFonts.TextBoxFont();

            //상단바
            this.topBarPanel          = new TopBarPanel(customFonts);
            this.topBarPanel.Location = new System.Drawing.Point(0, 0);
            this.Controls.Add(topBarPanel);

            lectureTotalStudentTextBox.KeyPress   += textBox_KeyPress_1;
            this.myLectureTable.ColumnCount        = 5;
            this.myLectureTable.Columns[4].Name    = "id";
            this.myLectureTable.Columns[4].Visible = false;
            // Sample
            setMyLectureTable();
        }
示例#10
0
        private void StudentLectureEditView_Load(object sender, EventArgs e)
        {
            selectedID  = new List <string>();
            myLectureID = new List <string>();
            // 테이블 행 추가
            lectureTable.ColumnCount        = 6;
            lectureTable.Columns[5].Name    = "id";
            lectureTable.Columns[5].Visible = false;

            myLectureTable.ColumnCount        = 5;
            myLectureTable.Columns[4].Name    = "id";
            myLectureTable.Columns[4].Visible = false;

            setAllLectrues();
            setMyLectures();

            // 이미지
            lecturePictureBox.SizeMode = PictureBoxSizeMode.StretchImage;
            lecturePictureBox.Image    = System.Drawing.Image.FromFile("./src/Assets/Images/lecture.png");

            // 폰트
            CustomFonts customFonts = new CustomFonts();

            // NormalFont : 10f
            // LabelFont : 13f
            // TextBoxFont : 12f
            // SmallFont : 8f
            // TitleFont: 20f
            // SubTitleFont : 17f

            minimizeButton.Font = customFonts.LabelFont();
            exitButton.Font     = customFonts.LabelFont();

            professorNameLbl.Font = customFonts.LabelFont();
            lectureNameLbl.Font   = customFonts.LabelFont();

            myLectureLbl.Font = customFonts.SubTitleFont();

            lectureNameTxtBox.Font   = customFonts.TextBoxFont();
            professorNameTxtBox.Font = customFonts.TextBoxFont();

            //상단바
            this.topBarPanel          = new TopBarPanel(customFonts);
            this.topBarPanel.Location = new Point(0, 0);
            this.Controls.Add(topBarPanel);
        }
示例#11
0
        private void ProfessorHomeView_Load(object sender, EventArgs e)
        {
            // 테이블 행 높이 설정
            lectureTable.RowTemplate.Height = 35;

            // 이미지
            pictureBox.SizeMode = PictureBoxSizeMode.StretchImage;
            pictureBox.Image    = System.Drawing.Image.FromFile("./src/Assets/Images/user.png");

            Professor professor = (Professor)mainController.Me;

            // SampleText
            univLabel.Text  = professor.School;
            nameLabel.Text  = professor.Name;
            emailLabel.Text = professor.ID;

            // 폰트
            CustomFonts customFonts = new CustomFonts();

            // NormalFont : 10f
            // LabelFont : 13f
            // TextBoxFont : 12f
            // SmallFont : 8f
            // TitleFont: 20f
            // SubTitleFont : 17f
            initFont(customFonts);

            testAddBtn.Click     += testAddBtn_Click_1;
            editLectureBtn.Click += editLectureBtn_Click_1;

            //상단바
            this.topBarPanel          = new TopBarPanel(customFonts);
            this.topBarPanel.Location = new Point(0, 0);
            this.Controls.Add(topBarPanel);

            this.lectureTable.Columns[5].Visible = false;

            setUserLecture();
            setUserExam();

            selectedID = "";
        }
 void OnGUI()
 {
     if (!IsConstellationSelected())
     {
         StartPanel.Draw(this);
         return;
     }
     else
     {
         TopBarPanel.Draw(this, this, this, this);
         var constellationName = NodeTabPanel.Draw(ScriptDataService.currentPath.ToArray(), null);
         if (constellationName != null)
         {
             Open(constellationName);
         }
         var constellationToRemove = NodeTabPanel.ConstellationToRemove();
         EditorGUILayout.BeginHorizontal();
         if (NodeWindow == null)
         {
             ParseScript();
         }
         NodeWindow.UpdateSize(position.width - nodeSelectorWidth - splitThickness, position.height - NodeTabPanel.GetHeight());
         NodeWindow.Draw(RequestRepaint, OnEditorEvent);
         DrawVerticalSplit();
         NodeSelector.Draw(nodeSelectorWidth, position.height, NodeAdded);
         EditorGUILayout.EndHorizontal();
         if (ScriptDataService.CloseOpenedConstellation(constellationToRemove))
         {
             if (ScriptDataService.currentPath.Count > 0)
             {
                 Open(ScriptDataService.currentPath[0]);
             }
         }
         DrawInstancePannel();
     }
 }
        public void OpenTopBarPanel_IsOpenTopBarPanel()
        {
            TopBarPanel topBarPanel = homePage.OpenTopBarPanel();

            AllureLifecycle.Instance.Verify.That("Open top bar panel", () => topBarPanel.IsTopBarPanelDisplayed(), Is.True);
        }
示例#14
0
        // 로그인 뷰 로드
        private void LoginView_Load_1(object sender, EventArgs e)
        {
            emailTextBox.Text    = "*****@*****.**";
            passwordTextBox.Text = "**********";
            loginButton.Focus();

            // Font setting
            customFonts = new CustomFonts();

            //상단바
            this.topBarPanel          = new TopBarPanel(customFonts, true);
            this.topBarPanel.Location = new Point(0, 0);
            this.Controls.Add(topBarPanel);

            //Image panel backgroundimage setting
            string backgroundImageRoute = "./src/Assets/Images/Login.jpg";

            System.IO.FileInfo backgroundImage = new System.IO.FileInfo(backgroundImageRoute);
            if (backgroundImage.Exists)
            {
                imagePanel.BackgroundImage       = Bitmap.FromFile(backgroundImageRoute);
                imagePanel.BackgroundImageLayout = ImageLayout.Stretch;
            }
            else
            {
                MessageBox.Show("LoginView 배경 이미지가 존재하지 않습니다.");
            }


            emailLabel.Font      = customFonts.LabelFont();
            emailTextBox.Font    = customFonts.TextBoxFont();
            passwordLabel.Font   = customFonts.LabelFont();
            passwordTextBox.Font = customFonts.TextBoxFont();
            loginButton.Font     = customFonts.LabelFont();
            registerButton.Font  = customFonts.LabelFont();
            copyrightLabel.Font  = customFonts.CopyRightFont();

            // 회원가입 패널 폰트 설정

            // 학교
            signupUnivLabel.Font   = customFonts.LabelFont();
            signupUnivTextBox.Font = customFonts.TextBoxFont();
            signupUnivButton.Font  = customFonts.TextBoxFont();

            // 학번
            signupStdNumLabel.Font   = customFonts.LabelFont();
            signupStdNumTextBox.Font = customFonts.TextBoxFont();

            // 이름
            signupNameLabel.Font   = customFonts.LabelFont();
            signupNameTextBox.Font = customFonts.TextBoxFont();

            // 이메일
            signupEmailLabel.Font   = customFonts.LabelFont();
            signupEmailTextBox.Font = customFonts.TextBoxFont();

            // 비밀번호
            signupPasswordLabel.Font   = customFonts.LabelFont();
            signupPasswordTextBox.Font = customFonts.TextBoxFont();

            // 비밀번호 확인
            signupPasswordCheckLabel.Font   = customFonts.LabelFont();
            signupPasswordCheckTextBox.Font = customFonts.TextBoxFont();

            // 생년월일
            signupBirthLabel.Font  = customFonts.LabelFont();
            signupBirthPicker.Font = customFonts.TextBoxFont();

            // 구분
            signupPositionLabel.Font    = customFonts.LabelFont();
            signupPositionComboBox.Font = customFonts.NormalFont();

            // 버튼
            signupButton.Font       = customFonts.TextBoxFont();
            signupCancelButton.Font = customFonts.TextBoxFont();

            // 라디오 버튼
            studentRadioBtn.Font   = customFonts.NormalFont();
            professorRadioBtn.Font = customFonts.NormalFont();

            // ComboBox setting
            signupPositionComboBox.Items.Clear();
            signupPositionComboBox.Items.Add("학생");
            signupPositionComboBox.Items.Add("교수");
        }
        private void ProfessorDetailScoreView_Load(object sender, EventArgs e)
        {
            // ProfessorScoreCheckView에서 강의, 시험 정보 받아서 텍스트 바꿔줘야 함

            // example

            // 강의명
            lectureText.Text = lectureName;

            // 시험명
            testNameText.Text = testName;

            // 시험 날짜
            testDayText.Text = testDay;

            // 총 점수
            totalScoreText.Text = totalScore;

            // 반영 비율
            percentLabelText.Text = percent;



            // Font setting
            CustomFonts customFonts = new CustomFonts();

            // NormalFont : 10f
            // LabelFont : 13f
            // TextBoxFont : 12f
            // SmallFont : 8f
            // TitleFont: 20f
            // SubTitleFont : 17f

            studentScoreTable.Font = customFonts.NormalFont();
            scoreCheckLabel.Font   = customFonts.TitleFont();

            // 강의명
            lectureText.Font = customFonts.LectureTitleFont();

            // 시험명
            testNameText.Font = customFonts.SubTitleFont();

            // 시험 날짜
            testDayText.Font = customFonts.SubTitleFont();

            // 총 점수
            totalScoreLbl.Font  = customFonts.SubTitleFont();
            totalScoreText.Font = customFonts.SubTitleFont();

            // 평균 점수
            avgScoreLbl.Font  = customFonts.SubTitleFont();
            avgScoreText.Font = customFonts.SubTitleFont();

            // 반영 비율
            percentLabel.Font     = customFonts.SubTitleFont();
            percentLabelText.Font = customFonts.SubTitleFont();

            // PictureBox Setting
            scorePictureBox.SizeMode = PictureBoxSizeMode.StretchImage;
            scorePictureBox.Image    = System.Drawing.Image.FromFile("./src/Assets/Images/score.png");

            //상단바
            this.topBarPanel          = new TopBarPanel(customFonts);
            this.topBarPanel.Location = new Point(0, 0);
            this.Controls.Add(topBarPanel);

            loadAllStudentExamResult();

            /*
             * // 학생명 학생점수 채점 여부 표시
             * studentScoreTable.Rows.Add("17011010", "홍길동", "78", "O");
             * studentScoreTable.Rows.Add("17011011", "최모씨", "56", "X");
             * studentScoreTable.Rows.Add("17011012", "이모씨", "78", "O");
             * studentScoreTable.Rows.Add("17011013", "김모씨", "78", "X");
             * studentScoreTable.Rows.Add("17011014", "홍길동", "78", "O");
             * studentScoreTable.Rows.Add("17011015", "최모씨", "56", "X");
             * studentScoreTable.Rows.Add("17011016", "이모씨", "78", "O");
             * studentScoreTable.Rows.Add("17011017", "김모씨", "78", "X");
             * studentScoreTable.Rows.Add("17011018", "홍길동", "78", "O");
             * studentScoreTable.Rows.Add("17011019", "최모씨", "56", "X");
             * studentScoreTable.Rows.Add("17011010", "이모씨", "78", "O");
             * studentScoreTable.Rows.Add("17011011", "김모씨", "78", "X");
             * studentScoreTable.Rows.Add("17011012", "홍길동", "78", "O");
             * studentScoreTable.Rows.Add("17011013", "최모씨", "56", "X");
             * studentScoreTable.Rows.Add("17011014", "이모씨", "78", "O");
             * studentScoreTable.Rows.Add("17011015", "김모씨", "78", "X");
             * studentScoreTable.Rows.Add("17011016", "홍길동", "78", "O");
             * studentScoreTable.Rows.Add("17011017", "김모씨", "78", "X");
             * studentScoreTable.Rows.Add("17011018", "홍길동", "78", "O");
             * studentScoreTable.Rows.Add("17011019", "최모씨", "56", "X");
             * studentScoreTable.Rows.Add("17011010", "이모씨", "78", "O");
             * studentScoreTable.Rows.Add("17011011", "김모씨", "78", "X");
             * studentScoreTable.Rows.Add("17011012", "홍길동", "78", "O");
             * studentScoreTable.Rows.Add("17011012", "홍길동", "78", "O");
             *
             * this.avgScoreText.Text = "73.21";
             */
        }
示例#16
0
        private void VideoView_Load(object sender, EventArgs e)
        {
            // 폰트
            CustomFonts customFonts = new CustomFonts();

            // NormalFont : 10f
            // LabelFont : 13f
            // TextBoxFont : 12f
            // SmallFont : 8f
            // TitleFont: 20f
            // SubTitleFont : 17f

            status = false;

            bookMarkLbl.Font   = customFonts.SubTitleFont();
            exitBtn.Font       = customFonts.TextBoxFont();
            bookMarkTable.Font = customFonts.NormalFont();


            // 이미지
            bookMarkPictureBox.SizeMode = PictureBoxSizeMode.StretchImage;
            bookMarkPictureBox.Image    = System.Drawing.Image.FromFile("./src/Assets/Images/face.png");

            // 상단바
            this.topBarPanel          = new TopBarPanel(customFonts);
            this.topBarPanel.Location = new Point(0, 0);
            this.Controls.Add(topBarPanel);

            // 테이블 Sample

            /*
             * bookMarkTable.Rows.Add("17011484", "백인창", "2020-12-01 00:57:04", "Audio");
             * bookMarkTable.Rows.Add("17011484", "백인창", "2020-12-01 00:57:14", "Audio");
             * bookMarkTable.Rows.Add("17011484", "백인창", "2020-12-01 00:57:27", "Audio");
             * bookMarkTable.Rows.Add("17011484", "백인창", "2020-12-01 00:57:40", "Audio");
             * bookMarkTable.Rows.Add("17011484", "백인창", "2020-12-01 00:57:43", "Audio");
             * bookMarkTable.Rows.Add("17011484", "백인창", "2020-12-01 00:57:48", "Gaze");
             * bookMarkTable.Rows.Add("17011484", "백인창", "2020-12-01 00:58:01", "Audio");
             * bookMarkTable.Rows.Add("17011484", "백인창", "2020-12-01 00:58:07", "Gaze");
             * //string time = "2020-11-29 15-54-18";
             * //startTime = setTime(time);
             *
             * //initBookmarkVideo();
             *
             * try
             * {
             *  Core.Initialize();
             *  libVLC = new LibVLCSharp.Shared.LibVLC();
             *  videoView = new LibVLCSharp.WinForms.VideoView();
             *  videoView.MediaPlayer = new LibVLCSharp.Shared.MediaPlayer(libVLC);
             *  videoView.MediaPlayer.Play(new Media(libVLC, "http://localhost:8080/2020-11-29_15-54-18_28b1d3f4-ec2c-4787-a187-a2e4a91bc630.mp4", FromType.FromLocation));
             *  bookMarkPanel.Controls.Add(videoView);
             *  videoView.BringToFront();
             *  videoView.Dock = DockStyle.Fill;
             *  status = true;
             * }
             * catch (Exception error)
             * {
             *  Console.WriteLine(error);
             * }
             */

            bookMarkTable.ScrollBars = ScrollBars.Vertical;

            loadStudentBookMark();
            loadStudentExamVideo();
        }
示例#17
0
        private void StudentHomeView_Load(object sender, EventArgs e)
        {
            CustomFonts customFonts = new CustomFonts();

            lectureTable.ColumnCount        = 6;
            lectureTable.Columns[5].Name    = "id";
            lectureTable.Columns[5].Visible = false;
            // 테이블 행 높이 설정
            lectureTable.RowTemplate.Height = 35;

            // 테이블 행 추가
            // Sample

            univLabel.Text   = "세종대학교";
            stuNumLabel.Text = "123456";
            nameLabel.Text   = "홍길동";
            emailLabel.Text  = "*****@*****.**";


            // 이미지
            pictureBox.SizeMode       = PictureBoxSizeMode.StretchImage;
            pictureBox.Image          = System.Drawing.Image.FromFile("./src/Assets/Images/user.png");
            cameraPictureBox.SizeMode = PictureBoxSizeMode.StretchImage;
            cameraPictureBox.Image    = System.Drawing.Image.FromFile("./src/Assets/Images/LinkImage.png");

            // 폰트

            // NormalFont : 10f
            // LabelFont : 13f
            // TextBoxFont : 12f
            // SmallFont : 8f
            // TitleFont: 20f
            // SubTitleFont : 17f

            lectureTable.Font = customFonts.NormalFont();

            //testInfoMinimizeBtn.Font = customFonts.LabelFont();
            //testInfoExitBtn.Font = customFonts.LabelFont();

            univLabel.Font   = customFonts.LabelFont();
            stuNumLabel.Font = customFonts.LabelFont();
            nameLabel.Font   = customFonts.LabelFont();
            emailLabel.Font  = customFonts.LabelFont();

            editBirthLabel.Font         = customFonts.LabelFont();
            editEmailLabel.Font         = customFonts.LabelFont();
            editNameLabel.Font          = customFonts.LabelFont();
            editPasswordCheckLabel.Font = customFonts.LabelFont();
            editPasswordLabel.Font      = customFonts.LabelFont();
            editStdNumLabel.Font        = customFonts.LabelFont();
            editUnivLabel.Font          = customFonts.LabelFont();

            editUnivTextBox.Font          = customFonts.TextBoxFont();
            editStdNumTextBox.Font        = customFonts.TextBoxFont();
            editNameTextBox.Font          = customFonts.TextBoxFont();
            editEmailTextBox.Font         = customFonts.TextBoxFont();
            editPasswordTextBox.Font      = customFonts.TextBoxFont();
            editPasswordCheckTextBox.Font = customFonts.TextBoxFont();
            editBirthPicker.Font          = customFonts.TextBoxFont();

            testInfoLectureLbl.Font  = customFonts.TitleFont();
            testInfoTestNameLbl.Font = customFonts.SubTitleFont();
            testInfoProfNameLbl.Font = customFonts.LabelFont();
            testInfoDayLbl.Font      = customFonts.LabelFont();
            testInfoTimeLbl.Font     = customFonts.LabelFont();

            cameraLabel.Font = customFonts.LabelFont();

            //상단바
            this.topBarPanel          = new TopBarPanel(customFonts);
            this.topBarPanel.Location = new Point(0, 0);
            this.Controls.Add(topBarPanel);

            editButton.Click += editButton_Click;
            setUserInfo();
            setUserExam();
            selectedID = "";
        }
        public void OpenTopBarPanel_IsOpenTopBarPanel()
        {
            TopBarPanel topBarPanel = homePage.OpenTopBarPanel();

            Assert.IsTrue(topBarPanel.IsTopBarPanelDisplayed());
        }