Пример #1
0
        public void RemoveItem(int index)
        {
            var commandRemove = new CommandRemove <TItem>(index, Items);

            SizeStack.Push(commandRemove);
            commandRemove.Do();
        }
Пример #2
0
        public void RemoveItem(int index)
        {
            var commandRemove = new CommandRemove <TItem>(this, index);

            commandRemove.Do();
            commandStack.Push(commandRemove);
        }
        public void RemoveItem(int index)
        {
            //Items.RemoveAt(index);
            ICommand <TItem> command = new CommandRemove <TItem>(index);

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