public VideoFileOperationCoroutine(ManagedFile baseFile, VideoArchiveAction fileAction = VideoArchiveAction.NoAction) { if (baseFile == null) { throw new ArgumentNullException("baseFile"); } BaseFile = baseFile; desiredFileAction = fileAction; acceptedFileAction = VideoArchiveAction.NoAction; IoC.BuildUp(this); }
private void SetVideoArchiveActionOnSeriesFolder(VideoArchiveAction action) { if (ActiveItem is SeriesFolder && ((ITreeViewDisplayable)ActiveItem).Children.Count > 0) { ((ITreeViewDisplayable)ActiveItem).Children.Take(((ITreeViewDisplayable)ActiveItem).Children.Count - (action == VideoArchiveAction.ToPrelimArchive ? 1 : 0)).Cast <ManagedFile>().Apply(file => { file.VideoFileAction = action; }); ((ITreeViewDisplayable)ActiveItem).Children.Skip(((ITreeViewDisplayable)ActiveItem).Children.Count - (action == VideoArchiveAction.ToPrelimArchive ? 1 : 0)).Cast <ManagedFile>().Apply(file => { file.VideoFileAction = VideoArchiveAction.NoAction; }); ((SeriesFolder)ActiveItem).CheckIconColor(); } }
public VideoFileOperationCoroutine(ManagedFile baseFile, VideoArchiveAction fileAction = VideoArchiveAction.NoAction) { if (baseFile == null) throw new ArgumentNullException("baseFile"); BaseFile = baseFile; desiredFileAction = fileAction; acceptedFileAction = VideoArchiveAction.NoAction; IoC.BuildUp(this); }