Exemple #1
0
        private void BtChooseTest_Click(object sender, RoutedEventArgs e)
        {
            dgClassList.Items.Clear();

            testName = comboChooseTest.SelectedValue.ToString();

            List <ModelStudentResult> list = tr.GetClassTestList(connectionString, testName);

            lbNotify.Content = "";


            foreach (var rec in list)
            {
                DataGridBind dgb = new DataGridBind
                {
                    STUD_USERNAME = rec.STUD_USERNAME,
                    STUD_FNAME    = rec.STUD_FNAME,
                    STUD_LNAME    = rec.STUD_LNAME,
                    TEST_NAME     = rec.TEST_NAME,
                    TEST_RESULT   = rec.TEST_RESULT
                };


                dgClassList.Items.Add(dgb);
            }
        }
Exemple #2
0
        private void TakeTestWindow_Loaded(object sender, RoutedEventArgs e)
        {
            List <ModelStudentResult> list = tr.GetTestReport(connectionString, currentUser);

            foreach (var rec in list)
            {
                DataGridBind dgb = new DataGridBind
                {
                    TEST_NAME   = rec.TEST_NAME,
                    TEST_RESULT = rec.TEST_RESULT
                };

                dgClassList.Items.Add(dgb);
            }
        }