private async void SetSelectedDocument(FoundDocumentViewModel value)
        {
            mainViewModel.WindowEnabled = false;
            try
            {
                if (selectedDocument != value)
                {
                    if (selectedDocument != null)
                    {
                        selectedDocument.Unload();
                    }

                    selectedDocument = value;

                    if (selectedDocument != null)
                    {
                        await selectedDocument.LoadAsync();
                    }
                }

                NotifyPropertyChanged(nameof(SelectedDocument));
                NotifyPropertyChanged(nameof(HasSelectedDocument));
                NavigateToPreviousCommand.NotifyCanExecuteChanged();
                NavigateToNextCommand.NotifyCanExecuteChanged();
            }
            finally
            {
                mainViewModel.WindowEnabled = true;
            }
        }
 private void OnNavigateToPrevious()
 {
     SelectedDocument.NavigatePrevious();
     NavigateToNextCommand.NotifyCanExecuteChanged();
     NavigateToPreviousCommand.NotifyCanExecuteChanged();
 }