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

            p.Go();
        }
Example #2
0
	public void AppendHistory (PageVisit page)
	{
		pos++;
		if (history.Count <= pos)
			history.Add (page);
		else
			history [pos] = page;

		if (pos > 0)
			back.Sensitive = true;
		forward.Sensitive = false;
	}
Example #3
0
		public void AppendHistory (PageVisit page)
		{
			if (ignoring)
				return;
			pos++;
			if (history.Count <= pos)
				history.Add (page);
			else
				history [pos] = page;

			navigation.SetEnabled (pos > 0, 0);
			navigation.SetEnabled (false, 1);
		}
Example #4
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);
        }
Example #5
0
        public void AppendHistory(PageVisit page)
        {
            pos++;
            if (history.Count <= pos)
            {
                history.Add(page);
            }
            else
            {
                history [pos] = page;
            }

            if (pos > 0)
            {
                back.Sensitive = true;
            }
            forward.Sensitive = false;
        }
Example #6
0
        public void AppendHistory(PageVisit page)
        {
            if (ignoring)
            {
                return;
            }
            pos++;
            if (history.Count <= pos)
            {
                history.Add(page);
            }
            else
            {
                history [pos] = page;
            }

            navigation.SetEnabled(pos > 0, 0);
            navigation.SetEnabled(false, 1);
        }
Example #7
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;
        }
Example #8
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;
        }