Esempio n. 1
0
        public void AddUser()
        {
            RedoableCommands.Clear();
            var addCommand = new AddUserCommand(_contractManager);

            addCommand.Execute();
            UndoableCommands.Push(addCommand);
        }
Esempio n. 2
0
        public void OnUserAdd()
        {
            RedoableCommands.Clear();
            var addCommand = new AddUserCommand(_userModelManager);

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