public AddNewStudentsGroup(ClientObject cl, Window _mw, Frame _mn)
 {
     InitializeComponent();
     client = cl;
     main   = _mn;
     mw     = _mw;
     groups = client.GetGroups();
 }
示例#2
0
 public void SetListOfGroups()
 {
     groups = client.GetGroups();
     if (groups.Count > 0)
     {
         groupsGrid.ItemsSource = groups;
     }
 }
 // додає групи для перегляду
 public void AddItemsToGroupComboBox()
 {
     groups = client.GetGroups();
     GroupsComboBox.Items.Clear();
     if (groups.Count > 0)
     {
         foreach (DTOGroup item in groups)
         {
             ComboBoxItem gnItem = new ComboBoxItem()
             {
                 Content = item.GroupName
             };
             GroupsComboBox.Items.Add(gnItem);
         }
     }
     else
     {
         ComboBoxItem gnItem = new ComboBoxItem()
         {
             Content = "No Groups"
         };
         GroupsComboBox.Items.Add(gnItem);
     }
 }