예제 #1
0
파일: ListModel.cs 프로젝트: IPgyt01/Kontur
        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);
        }