示例#1
0
        public void InsertRange(int index, IEnumerable <T> collection)
        {
            InsertRangeCommand command = new InsertRangeCommand(theList, index, collection);

            undoManager.Execute(command);
        }
示例#2
0
        public void AddRange(IEnumerable <T> collection)
        {
            InsertRangeCommand command = new InsertRangeCommand(theList, theList.Count, collection);

            undoManager.Execute(command);
        }