Example #1
0
        public void AppendHistory(PageVisit page)
        {
            if (ignoring)
                return;
            pos++;
            if (history.Count <= pos)
                history.Add (page);
            else
                history [pos] = page;

            backButton.Enabled = pos > 0;
            forwardButton.Enabled = false;
        }
        internal bool BackClicked()
        {
            if (!active || pos < 1)
            {
                return(false);
            }
            pos--;
            PageVisit p = (PageVisit)history [pos];

            ignoring = true;
            p.Go();
            ignoring              = false;
            backButton.Enabled    = pos > 0;
            forwardButton.Enabled = true;
            return(true);
        }
        public void AppendHistory(PageVisit page)
        {
            if (ignoring)
            {
                return;
            }
            pos++;
            if (history.Count <= pos)
            {
                history.Add(page);
            }
            else
            {
                history [pos] = page;
            }

            backButton.Enabled    = pos > 0;
            forwardButton.Enabled = false;
        }