public void CombineImages(Orientation orientation) { if (IsItemSelected) { IEnumerable <string> imageFiles = SelectedItems.Where(x => x.IsImageFile).Select(x => x.Info.FilePath); if (imageFiles.Count() > 1) { TaskHelpers.CombineImages(imageFiles, orientation); } } }