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