protected MultimediaDriveHandler(DriveInfo driveInfo, IEnumerable<MediaItem> mediaItems, MultiMediaType mediaType) : base(driveInfo)
 {
   _mediaType = mediaType;
   _mediaItemsSubViewSpecification = new StaticViewSpecification(
       driveInfo.VolumeLabel + " (" + DriveUtils.GetDriveNameWithoutRootDirectory(driveInfo) + ")", new Guid[] {}, new Guid[] {});
   foreach (MediaItem item in mediaItems)
     _mediaItemsSubViewSpecification.AddMediaItem(item);
 }
Example #2
0
 protected MultimediaDriveHandler(DriveInfo driveInfo, IEnumerable <MediaItem> mediaItems, MultiMediaType mediaType) : base(driveInfo)
 {
     _mediaType = mediaType;
     _mediaItemsSubViewSpecification = new StaticViewSpecification(
         driveInfo.VolumeLabel + " (" + DriveUtils.GetDriveNameWithoutRootDirectory(driveInfo) + ")", new Guid[] {}, new Guid[] {});
     foreach (MediaItem item in mediaItems)
     {
         _mediaItemsSubViewSpecification.AddMediaItem(item);
     }
 }
 protected AudioCDDriveHandler(DriveInfo driveInfo, IEnumerable<MediaItem> tracks) : base(driveInfo)
 {
   string volumeLabel;
   try
   {
     volumeLabel = driveInfo.VolumeLabel;
   }
   catch (Exception)
   {
     volumeLabel = "Audio CD";
   }
   _audioCDSubViewSpecification = new StaticViewSpecification(
       volumeLabel + " (" + DriveUtils.GetDriveNameWithoutRootDirectory(driveInfo) + ")", new Guid[] {}, new Guid[] {});
   foreach (MediaItem track in tracks)
     _audioCDSubViewSpecification.AddMediaItem(track);
 }
Example #4
0
        protected AudioCDDriveHandler(DriveInfo driveInfo, IEnumerable <MediaItem> tracks) : base(driveInfo)
        {
            string volumeLabel;

            try
            {
                volumeLabel = driveInfo.VolumeLabel;
            }
            catch (Exception)
            {
                volumeLabel = "Audio CD";
            }
            _audioCDSubViewSpecification = new StaticViewSpecification(
                volumeLabel + " (" + DriveUtils.GetDriveNameWithoutRootDirectory(driveInfo) + ")", new Guid[] {}, new Guid[] {});
            foreach (MediaItem track in tracks)
            {
                _audioCDSubViewSpecification.AddMediaItem(track);
            }
        }