コード例 #1
0
        public void AddUser()
        {
            RedoableCommands.Clear();
            var addCommand = new AddUserCommand(_contractManager);

            addCommand.Execute();
            UndoableCommands.Push(addCommand);
        }
コード例 #2
0
        public void OnUserAdd()
        {
            RedoableCommands.Clear();
            var addCommand = new AddUserCommand(_userModelManager);

            addCommand.Execute();
            FlipAccordionState(addCommand.GetUserId());
            UndoableCommands.Push(addCommand);
        }