private void addGroupButton_Click(object sender, RoutedEventArgs e) { Forms.GroupWindow g = new Forms.GroupWindow(true); if (g.ShowDialog() == true) { this.ShowAll(); } }
private void editGroupButton_Click(object sender, RoutedEventArgs e) { if (gropiesGrid.SelectedItems.Count > 0) { for (int i = 0; i < gropiesGrid.SelectedItems.Count; i++) { WFAEntity.API.Group objectGroup = gropiesGrid.SelectedItems[i] as WFAEntity.API.Group; if (objectGroup != null) //if (gropiesGrid.SelectedItems[i] is WFAEntity.API.Group students) { Forms.GroupWindow g = new Forms.GroupWindow(false, objectGroup.Id); if (g.ShowDialog() == true) { this.ShowAll(SELECTED_TAB.GROUP); } } } } else { MessageBox.Show("Выберите строку"); } }