Exemplo n.º 1
0
        public void AddItem(TItem item)
        {
            var commandAdd = new CommandAdd <TItem>(Items, item);

            SizeStack.Push(commandAdd);
            commandAdd.Do();
        }
        public void AddItem(TItem item)
        {
            //Items.Add(item);
            ICommand <TItem> command = new CommandAdd <TItem>(item);

            Commands.Push(command);
            command.Do(Items);
        }