예제 #1
0
파일: History.cs 프로젝트: ywwseu/xenadmin
        public static void Back(int i)
        {
            while (i > 0)
            {
                forwardHistory.Push(currentHistoryItem);
                currentHistoryItem = backwardHistory.Pop();
                i--;
            }

            DoHistoryItem(currentHistoryItem);
        }
예제 #2
0
파일: History.cs 프로젝트: ywwseu/xenadmin
        public static void NewHistoryItem(HistoryItem historyItem)
        {
            if (InHistoryNavigation)
            {
                return;
            }

            if (historyItem.Equals(currentHistoryItem))
            {
                return;
            }

            if (currentHistoryItem != null)
            {
                backwardHistory.Push(currentHistoryItem);
            }

            forwardHistory.Clear();

            currentHistoryItem = historyItem;

            EnableHistoryButtons();
        }