public void GoForward() { if (!CanGoForward) throw new InvalidOperationException("Can't go forward."); _backStack.Push(_current); _current = _forwardStack.Pop(); NotifyNavigationPropertiesChanged(); }
public void GoForward() { if (!CanGoForward) { throw new InvalidOperationException("Can't go forward."); } _backStack.Push(_current); _current = _forwardStack.Pop(); NotifyNavigationPropertiesChanged(); }