Пример #1
0
        private void NavigateBack(string s)
        {
            ForwardHistory.Push(CurrentDirectory);
            var previousDirectory = BackHistory.Pop();

            Navigate(previousDirectory.Path);
        }
Пример #2
0
 public void Back()
 {
     if (BackHistory.Count > 0)
     {
         Current.Dispose();
         ForwardHistory.Push(Current);
         Current = BackHistory.Pop();
         LoadPageControl();
     }
 }
Пример #3
0
        /// <inheritdoc/>
        public IDocument Back(bool useCache)
        {
            ForwardHistory.Push(History.Pop());
            if (useCache)
            {
                return(History.Last());
            }
            IDocument oldDocument = History.Pop();

            return(oldDocument);
        }