public MusicDatabaseViewer(IMusicDatabase database)
        {
            InitializeComponent();
            _database = database;

            albunsList.Items.AddRange(_database.GetAllAlbums().Select(p => p.Name).ToArray());
        }
        public MusicDatabaseViewer(IMusicDatabase database)
        {
            InitializeComponent();
            _database = database;

            albunsList.Items.AddRange(_database.GetAllAlbums().Select(p => p.Name).ToArray());
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="MediaLibrary"/> class.
 /// </summary>
 /// <param name="libVLC">LibVLC Instance.</param>
 /// <param name="musicDatabase">Music Database.</param>
 /// <param name="videoDatabase">Video Database.</param>
 /// <param name="platform">Storage File APIs.</param>
 /// <param name="logHelper">Log Helper.</param>
 public MediaLibrary(LibVLC libVLC, IMusicDatabase musicDatabase, IVideoDatabase videoDatabase, IPlatformSettings platform, ILogHelper logHelper)
 {
     this.platform      = platform;
     this.logHelper     = logHelper;
     this.libVLC        = libVLC;
     this.musicDatabase = musicDatabase;
     this.videoDatabase = videoDatabase;
     if (!this.musicDatabase.IsInitialized || !this.videoDatabase.IsInitialized)
     {
         throw new ArgumentException($"Databases must be initialized before using them in the media library.");
     }
 }
 public MusicDatabaseViewer(IMusicDatabase database, string fileName) : this(database)
 {
     _fileName = fileName;
 }
 public MusicDatabaseViewer(IMusicDatabase database, string fileName)
     : this(database)
 {
     _fileName = fileName;
 }