public void Add(IHistoryItem item)
        {
            CutOffHistory();

            if (items.Count > 20)
            {
                items.RemoveAt(0);
                currentIndex--;
            }

            items.Add(item);
            currentIndex++;
        }
예제 #2
0
        public void Add(IHistoryItem item)
        {
            CutOffHistory();

            if (items.Count > 20)
            {
                items.RemoveAt(0);
                currentIndex--;
            }

            items.Add(item);
            currentIndex++;
        }