private void AddGroup_Click(object sender, RoutedEventArgs e) { AddGroupWindow w = new AddGroupWindow(CurrentWindow.AddGroup); w.ShowDialog(); UpdateGroups(); }
private void EditGroup_Click(object sender, RoutedEventArgs e) { if (GroupGrid.SelectedIndex >= 0) { AddGroupWindow w = new AddGroupWindow(CurrentWindow.EditGroup, _groupsCollection.ElementAt(GroupGrid.SelectedIndex).Key.Name, _groupsCollection.ElementAt(GroupGrid.SelectedIndex).Key.Faculty); w.ShowDialog(); UpdateGroups(); } else { MessageBox.Show("Оберіть групу"); } }