/// <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);
        }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HubClient"/> class.
 /// </summary>
 /// <param name="player">The player.</param>
 public HubClient(Player player)
 {
     this.player = player;
 }