コード例 #1
0
        public void ActivateCurrent()
        {
            if (pos < 0)
            {
                return;
            }
            PageVisit p = (PageVisit)history [pos];

            p.Go();
        }
コード例 #2
0
ファイル: history.cs プロジェクト: dotdevelop/macdoc
        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;
        }