Пример #1
0
 private async void SearchHash_Click(object sender, RoutedEventArgs e)
 {
     vm.isWorking      = true;
     vm.lastSearchType = SearchType.ST_HASH;
     try
     {
         vm.subtitles =
             await service.searchSubtitlesFromFileAsync(vm.selectedLanguage.service_id, vm.activeFilePath);
     }
     catch
     {
         this.ShowMessageAsync("Error", "An error happened while fetching subtitles, please try again.");
     }
     vm.isWorking = false;
 }