Пример #1
0
        internal MediaFolder( UmdDevice device, MediaFolder parent, string name, MediaItemAttributes attributes, DateTime timestamp )
        {
            Debug.Assert( device != null );

            _device = device;
            _parent = parent;

            _name = name;
            _attributes = attributes;
            _timestamp = timestamp;

            _items = new List<IMediaItem>();
            _itemLookup = new Dictionary<string, IMediaItem>();

            // Add to parent
            if( _parent != null )
                _parent.AddItemInternal( this );
        }
Пример #2
0
        internal MediaFolder(UmdDevice device, MediaFolder parent, string name, MediaItemAttributes attributes, DateTime timestamp)
        {
            Debug.Assert(device != null);

            _device = device;
            _parent = parent;

            _name       = name;
            _attributes = attributes;
            _timestamp  = timestamp;

            _items      = new List <IMediaItem>();
            _itemLookup = new Dictionary <string, IMediaItem>();

            // Add to parent
            if (_parent != null)
            {
                _parent.AddItemInternal(this);
            }
        }
Пример #3
0
        internal MediaFile(UmdDevice device, MediaFolder parent, string name, MediaItemAttributes attributes, DateTime timestamp, long position, long length)
        {
            Debug.Assert(device != null);
            Debug.Assert(parent != null);
            Debug.Assert(name != null);
            Debug.Assert(name.Length > 0);

            _device = device;
            _parent = parent;

            _name       = name;
            _attributes = attributes;
            _timestamp  = timestamp;
            _position   = position;
            _length     = length;

            // Add to parent
            if (_parent != null)
            {
                _parent.AddItemInternal(this);
            }
        }