private async void initialClipPreload() { if (FilteredClips.Any()) { PreloadClips(preloadCT, FilteredClips[0].angles.Where(angle => angle.angleType.IsChecked).Take(2)); } }
public void GoToPreviousClip() { if (FilteredClips.Count > 1 && FilteredClips.Any(c => c.angles.Any(a => a.angleType.IsChecked))) { SelectedAngle = null; while (SelectedAngle == null) { SelectedClipIndex = (SelectedClipIndex == 0) ? FilteredClips.Count - 1 : SelectedClipIndex - 1; SelectedClip = FilteredClips[SelectedClipIndex]; listView.SelectedItem = SelectedClip; Angle nextAngle = SelectedClip.angles.FirstOrDefault(angle => angle.angleType.IsChecked); SelectedAngle = (nextAngle != null && nextAngle.isPreloaded) ? new Angle(nextAngle.clipAngleId, nextAngle.preloadFile) : nextAngle; } if (FilteredClips[SelectedClipIndex].angles.Where(angle => angle.angleType.IsChecked).Any()) { PreloadClips(preloadCT, FilteredClips[SelectedClipIndex].angles.Where(angle => angle.angleType.IsChecked).Take(2)); } } }