/// <summary> /// Initializes a new instance of the <see cref="MusicPickerDevice"/> class. /// </summary> public MusicPickerDevice() { database = new LiteDatabase("musicpicker.db"); configuration = new Configuration(); library = new Library(database); seeker = new Seeker(library, new[] { "mp3", "wav", "m4a", "flac" }); notifyIcon = new NotifyIcon(); menu = new ContextMenus() { SignUpForm = new SignUpForm(SignUp), ConnectionForm = new ConnectionForm(Connect), LoadForm = new LibraryPathsForm(configuration.Model, UpdateLibraryPaths) }; player = new Player(library); client = new ApiClient(new Uri("http://localhost:3000")); hubClient = new HubClient(player); }
/// <summary> /// Initializes a new instance of the <see cref="Player"/> class. /// </summary> /// <param name="library">The library.</param> public Player(Library library) { waveOutDevice = new WaveOutEvent(); this.library = library; waveOutDevice = new WaveOutEvent(); }
/// <summary> /// Initializes a new instance of the <see cref="Seeker"/> class. /// </summary> /// <param name="library">The library.</param> /// <param name="allowedExtensions">The allowed extensions.</param> public Seeker(Library library, string[] allowedExtensions) { this.library = library; this.allowedExtensions = allowedExtensions; }