예제 #1
0
        public void OnUserRemove(ProcessUser removedUser)
        {
            RedoableCommands.Clear();
            var removeCommand = new RemoveUserCommand(_userModelManager, removedUser);

            removeCommand.Execute();
            UndoableCommands.Push(removeCommand);
        }
예제 #2
0
        public void RemoveUser(ProcessUser removedUser)
        {
            RedoableCommands.Clear();
            var removeCommand = new RemoveUserCommand(_contractManager, removedUser);

            removeCommand.Execute();
            UndoableCommands.Push(removeCommand);
        }