public void SetListOfStudents(int groupId)
 {
     students = client.GetGroupStudents(groupId);
     if (students.Count != 0)
     {
         StudentsGrid.ItemsSource = students;
     }
 }
Esempio n. 2
0
 //Тут ще не докінця дороблено, і саме тут виникає ця помилка яку я не можу знайти
 private void DetailsButton_Click(object sender, RoutedEventArgs e)
 {
     if (GroupsComboBox.SelectedItem != null)
     {
         DetailsGrid.Visibility = Visibility.Visible;
         DTOGroup          group    = groups.FirstOrDefault(g => g.GroupName == GroupsComboBox.Text);
         List <DTOStudent> students = client.GetGroupStudents(group.StudentsId.ToList <int>());
         List <DTOTest>    tests    = client.GetGroupTests(group.TestsId.ToList <int>());
         studentsList.ItemsSource = students;
         testsList.ItemsSource    = tests;
     }
     else
     {
         MessageBox.Show("Please select group!");
     }
 }
 public void SetListOfStudents()
 {
     students = client.GetGroupStudents(dtoGroup.GroupId);
     if (students.Count > 0)
     {
         studentsOfGroupGrid.ItemsSource = students;
     }
 }