コード例 #1
0
        private void ToolStripMenuRenameGroup_Click(object sender, EventArgs e)
        {
            RenameGroupCommand rGrp = new RenameGroupCommand(data, GetGroupIndexForGroup());

            inv.ExecuteAction(rGrp);
            CreateTree();
            CheckUndoRedo();
        }
コード例 #2
0
 private void RaiseCanExecuteChanged()
 {
     AddNewGroupCommand.RaiseCanExecuteChanged();
     RemoveGroupCommand.RaiseCanExecuteChanged();
     AddNewUserCommand.RaiseCanExecuteChanged();
     RemoveUserCommand.RaiseCanExecuteChanged();
     RenameGroupCommand.RaiseCanExecuteChanged();
     ResetTypePermissionCommand.RaiseCanExecuteChanged();
     RemoveGroupFromUserCommand.RaiseCanExecuteChanged();
 }
コード例 #3
0
 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();
     }
 }