private void ToolStripMenuRenameGroup_Click(object sender, EventArgs e) { RenameGroupCommand rGrp = new RenameGroupCommand(data, GetGroupIndexForGroup()); inv.ExecuteAction(rGrp); CreateTree(); CheckUndoRedo(); }
private void RaiseCanExecuteChanged() { AddNewGroupCommand.RaiseCanExecuteChanged(); RemoveGroupCommand.RaiseCanExecuteChanged(); AddNewUserCommand.RaiseCanExecuteChanged(); RemoveUserCommand.RaiseCanExecuteChanged(); RenameGroupCommand.RaiseCanExecuteChanged(); ResetTypePermissionCommand.RaiseCanExecuteChanged(); RemoveGroupFromUserCommand.RaiseCanExecuteChanged(); }
public void RenameSelectedGroup(string name) { if (uiManager.GroupSelected) { Group group = university[uiManager.SelectedGroupIndex]; ICommand command = new RenameGroupCommand(group, name); commandsManager.Execute(command); uiManager.ClearSelection(); uiManager.UpdateUI(); } }