public void ActivateCurrent() { if (pos < 0) { return; } PageVisit p = (PageVisit)history [pos]; p.Go(); }
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; }
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); }
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); }
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; }
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); }
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; }
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; }