コード例 #1
0
        private void MBtnAddExamDetail_Click(object sender, EventArgs e)
        {
            var practiceExam = new DoAnLTUDQL1.Exam()
            {
                ExamId        = "",
                ExamName      = mTxtAddPracticeExamName.Text,
                IsPacticeExam = true
            };

            ExamDetailsAdded = new List <ExamDetail>();
            var frmTeacherExamDetail = new frmTeacherExamDetail(practiceExam, Subjects, ExamDetailsAdded);

            frmTeacherExamDetail.ShowDialog();
        }
コード例 #2
0
        private void MBtnEditExamDetail_Click(object sender, EventArgs e)
        {
            if (bsListPracticeExam.Count > 0 && Subjects.Count > 0)
            {
                var practiceExamEdited = new DoAnLTUDQL1.Exam()
                {
                    ExamId        = mTxtEditPracticeExamId.Text,
                    ExamName      = mTxtEditPracticeExamName.Text,
                    IsPacticeExam = false
                };

                var frmTeacherExamDetail = new frmTeacherExamDetail(practiceExamEdited, Subjects, ExamDetailsEdited);
                frmTeacherExamDetail.ShowDialog();
            }
        }