예제 #1
0
        void AddAlbum(Singer_Album album)
        {
            AlbumGrid albumGrid = new AlbumGrid(album);

            albumGrid.ScrollCall += AlbumGrid_ScrollCall;
            albumGrid.Margin      = new Thickness(0, 0, 0, 50);
            albums_panel.Children.Add(albumGrid);
            albumGrid.OnSongPlaying += AlbumGrid_OnSongPlaying;
            albumGrid.OnSongPaused  += AlbumGrid_OnSongPaused;
        }
        private async void Albums_Panel_OpenAlbum(int id)
        {
            LoadingScreen();
            Service1Client client = new Service1Client();
            var            album  = await client.GetAlbumAsync(id);

            client.Close();

            if (tape_panel.Child.GetType() != typeof(ProgressBar))
            {
                return;
            }

            AlbumGrid albumGrid = new AlbumGrid(album);

            albumGrid.ScrollCall += Grid_ScrollCall;

            tape_panel.Child = null;
            tape_panel.Child = albumGrid;
        }