public bool WorkInProgress() { if (SourceFileItem.WorkInProgress()) { return(true); } switch (TypeContainer) { case TypeContainer.Video: if (SpriteVideoFileItem != null && SpriteVideoFileItem.WorkInProgress()) { return(true); } return(EncodedFileItems.Any(f => f.WorkInProgress())); case TypeContainer.Overlay: if (OverlayFileItem != null && OverlayFileItem.WorkInProgress()) { return(true); } return(false); default: Debug.WriteLine("Type container non géré " + TypeContainer); throw new InvalidOperationException("type container non géré"); } }
public bool WorkInProgress() { if (SourceFileItem.WorkInProgress()) { return(true); } switch (TypeContainer) { case TypeContainer.Video: if (SpriteVideoFileItem != null && SpriteVideoFileItem.WorkInProgress()) { return(true); } return(EncodedFileItems.Any(f => f.WorkInProgress())); case TypeContainer.Image: if (OverlayFileItem != null && OverlayFileItem.WorkInProgress()) { return(true); } return(false); default: return(false); } }