private void PopulateSubtitleCollection(IEnumerable <Subtitle> subtitles) { SubtitlesCollection.Clear(); foreach (var subtitle in subtitles) { SubtitlesCollection.Add(subtitle); } IsLoading = false; }
private void ProcessFileAndGetSubtitles(string filePath) { var fileInfo = new FileInfo(filePath); if (FileHelper.IsFileTypeAllowed(fileInfo.Extension, App.AllowedExtensions) && fileInfo.Exists) { _movie = new Movie(fileInfo); GetSubtitles(_movie.FullPath); } else { SubtitlesCollection.Clear(); ShowMessage("Warning!", string.Format("Filetype {0} not allowed.", fileInfo.Extension)); } }