private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            ex = new ExaminationEntities1();
            subjectCombo.ItemsSource = ex.courseList(_stdId);
            examCombo.ItemsSource    = ex.examsList(_stdId, _courseId);
            var stdObj = ex.selectStudents().Where(s => s.std_Id == _stdId).FirstOrDefault();

            this.studetName.Text += $"{stdObj.std_FName} {stdObj.std_LName}";
        }
Example #2
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            ex = new ExaminationEntities1();
            std_result.ItemsSource = ex.GetSudentGrades(_stdId);

            StudentGradeResults.ItemsSource = ex.GetSudentGrades(_stdId).Select(p => new { Subject = p.crs_Name, Grade = p.grade }).ToList();

            var stdObj = ex.selectStudents().Where(s => s.std_Id == _stdId).FirstOrDefault();

            this.studentName.Text += $"{stdObj.std_FName} {stdObj.std_LName}";
        }
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            ex = new ExaminationEntities1();
            dg_UnsolvedExams.ItemsSource = ex.GetUnsolvedExamsNames(StudentID);

            var    stdName  = ex.selectStudents().Where(s => s.std_Id == StudentID).FirstOrDefault();
            string studName = $"{stdName.std_FName} {stdName.std_LName}";

            this.studentName.Text += studName;

            /*dg_UnsolvedExams.Columns[0].Width = 100;
            *  dg_UnsolvedExams.Columns[1].Width = 300;
            *  dg_UnsolvedExams.Columns[2].Width = 150;
            *  dg_UnsolvedExams.Columns[3].Width = 120;*/
        }
Example #4
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            ex = new ExaminationEntities1();


            CoursesTopicsList.ItemsSource = ex.topicsPerCourse();

            if (_insIDl != 0)
            {
                Course_Topics.ItemsSource = ex.CoursesByInstructor(_insIDl).Select(p => new { p.crs_Id, crs_Name = p.crs_name });
                var    InsName  = ex.selectFromInstructor(_insIDl).FirstOrDefault();
                string instName = $"{InsName.ins_FName} {InsName.ins_LName}";
                this.fullName.Text += instName;
            }
            if (_studentId != 0)
            {
                Course_Topics.ItemsSource = ex.courseList(_studentId);
                var    stdName  = ex.selectStudents().Where(s => s.std_Id == _studentId).FirstOrDefault();
                string studName = $"{stdName.std_FName} {stdName.std_LName}";
                this.fullName.Text += studName;
            }
        }
Example #5
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            ExaminationEntities1 ex = new ExaminationEntities1();

            StdEmailCbx.ItemsSource = ex.selectStudents();
        }