private bool IsChangedByBrowseBack(WorkWindowChangedEventArgs e)
 {
     return _backHistory.First != null &&
            e.NewValue == _backHistory.First.Value;
 }
 private bool IsChangedByBrowseForward(WorkWindowChangedEventArgs e)
 {
     return _forwardHistory.First != null &&
            e.NewValue == _forwardHistory.First.Value;
 }
        private void ViewModelOnWorkWindowChanged(object sender, WorkWindowChangedEventArgs e)
        {
            if (IsChangedByBrowseBack(e) || IsChangedByBrowseForward(e))
            {
                return;
            }

            _forwardHistory.Clear();
            AddToHistory(_backHistory, e.OldValue);
        }