public void RemoveSelectedGroup() { if (uiManager.GroupSelected) { Group group = university[uiManager.SelectedGroupIndex]; ICommand command = new RemoveGroupCommand(university, group); commandsManager.Execute(command); uiManager.ClearSelection(); uiManager.UpdateUI(); } }