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); }
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); }
private void initFont(CustomFonts customFonts) { lectureTable.Font = customFonts.NormalFont(); univLabel.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(); editUnivLabel.Font = customFonts.LabelFont(); editUnivTextBox.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(); }
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 = ""; }
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"; */ }