Пример #1
0
        private async Task Search()
        {
            Results = null;
            if (!string.IsNullOrWhiteSpace(SearchQuery))
            {
                IsBusy  = true;
                Results = await Novaroma.Helper.RunTask(() =>
                                                        _engine.SearchForSubtitleDownload(SearchQuery, SubtitleLanguages.SelectedItems.Select(si => si.Item).ToArray()),
                                                        _exceptionHandler
                                                        );

                IsBusy = false;
            }
        }