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

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

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

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

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