示例#1
0
        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é");
            }
        }
示例#2
0
        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);
            }
        }