예제 #1
0
        public void ActivateCurrent()
        {
            if (pos < 0)
            {
                return;
            }
            PageVisit p = (PageVisit)history [pos];

            p.Go();
        }
예제 #2
0
        internal bool BackClicked()
        {
            if (!active || pos < 1)
            {
                return(false);
            }
            pos--;
            PageVisit p = (PageVisit)history [pos];

            ignoring = true;
            p.Go();
            ignoring = false;
            navigation.SetEnabled(pos > 0, 0);
            navigation.SetEnabled(true, 1);
            return(true);
        }
예제 #3
0
        internal void ForwardClicked(object o, EventArgs args)
        {
            if (!active)
            {
                return;
            }
            if (pos + 1 == history.Count)
            {
                return;
            }

            pos++;
            PageVisit p = (PageVisit)history [pos];

            p.Go();
            if (pos + 1 == history.Count)
            {
                forward.Sensitive = false;
            }
            back.Sensitive = true;
        }
예제 #4
0
        internal void BackClicked(object o, EventArgs args)
        {
            if (!active)
            {
                return;
            }
            if (pos < 1)
            {
                return;
            }
            pos--;
            PageVisit p = (PageVisit)history [pos];

            p.Go();
            if (pos > 0)
            {
                back.Sensitive = true;
            }
            else
            {
                back.Sensitive = false;
            }
            forward.Sensitive = true;
        }