private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            UniversityDataDataContext data       = new UniversityDataDataContext();
            List <Instructor>         instructor = (from s in data.Instructors select s).ToList();

            instructorGrid.ItemsSource = instructor;
        }
Exemple #2
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            UniversityDataDataContext data    = new UniversityDataDataContext();
            List <C_completed>        courses = (from s in data.C_completeds select s).ToList();

            completedGrid.ItemsSource = courses;
        }
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            UniversityDataDataContext data     = new UniversityDataDataContext();
            List <Student>            students = (from s in data.Students select s).ToList();

            studentGrid.ItemsSource = students;
        }