コード例 #1
0
        public bool Remove(T item)
        {
            int  index = IndexOf(item);
            bool result;

            if (index >= 0)
            {
                RemoveAtCommand command = new RemoveAtCommand(theList, index);

                undoManager.Execute(command);

                result = true;
            }
            else
            {
                result = false;
            }

            return(result);
        }
コード例 #2
0
        public void RemoveAt(int index)
        {
            RemoveAtCommand command = new RemoveAtCommand(theList, index);

            undoManager.Execute(command);
        }