private async void SearchingProgressChanged(IVksmExtractionService sender, SearchingProgressChangedEventArgs e)
        {
            await _dispatcherWrapper.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
            {
                TotalFiles  = e.TotalFiles;
                CurrentFile = e.CurrentFile;

                SearchingText = String.Format(_locService["UpdatingDatabseView_SearchingFilesStep_Text"],
                                              CurrentFile, TotalFiles);
            });
        }
 public VksmExtractionViewModel(
     INavigationService navigationService,
     IVksmExtractionService vksmExtractionService,
     ISettingsService settingsService,
     ILocService locService,
     IDispatcherWrapper dispatcherWrapper)
 {
     _navigationService     = navigationService;
     _vksmExtractionService = vksmExtractionService;
     _settingsService       = settingsService;
     _locService            = locService;
     _dispatcherWrapper     = dispatcherWrapper;
 }
 private async void ExtractingProgressChanged(IVksmExtractionService sender, ExtractingProgressChangedEventArgs e)
 {
     await _dispatcherWrapper.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
     {
         if ((e.TotalBytes == 0 && e.CompletedBytes == 0) || e.TotalBytes == e.CompletedBytes)
         {
             TotalBytes     = 1;
             CompletedBytes = 0;
         }
         else
         {
             TotalBytes     = e.TotalBytes;
             CompletedBytes = e.CompletedBytes;
         }
     });
 }
 private void ExtractionCompleted(IVksmExtractionService sender, EventArgs e)
 {
     _navigationService.ClearHistory();
     _navigationService.Navigate("UpdatingDatabaseView", null);
 }