Пример #1
0
        private void ToolsAndsettings_AuthorizedAcces()
        {
            Player.UpdatePosition   += Player_UpdatePosition;
            Player.updateAudioModel += Player_updateAudioModel;

            _recomendatePage     = new RecomendatePage();
            _popularPage         = new PopularPage();
            _MyAudiosPage        = new MyAudios();
            _AlbumsPage          = new AlbumsPage();
            _searchPage          = new SearchPage();
            _repostPage          = new RepostPage();
            _currentPlaylistPage = new CurrentPlaylistPage();
            AuthFrame.Visibility = Visibility.Collapsed;

            СurrentPlaylistTab.Content = _currentPlaylistPage.Content;
            MyAudiosTab.Content        = _MyAudiosPage.Content;
            MyPlayliststab.Content     = _AlbumsPage.Content;
            SearchTab.Content          = _searchPage.Content;
            RecomendationTab.Content   = _recomendatePage.Content;
            PopularTab.Content         = _popularPage.Content;

            TeamplatesDictonary.AudioAddToPlaylist += TeamplatesDictonary_AudioAddToPlaylist;
            TeamplatesDictonary.AudioAdd           += TeamplatesDictonary_AudioAdd;
            TeamplatesDictonary.ArtistClicked      += TeamplatesDictonary_ArtistClicked;
            TeamplatesDictonary.AudioDelete        += TeamplatesDictonary_AudioDeleteClicked;
            TeamplatesDictonary.AudioDownload      += TeamplatesDictonary_AudioDownload;

            _repostPage.ClosedEvent += _repostPage_ClosedEvent;
            Console.WriteLine("Loaded");

            UpdateBG();
        }
Пример #2
0
 private static void AddtionalInfo(StringBuilder sb, PopularPage pp)
 {
     if (pp.VM == null)
     {
         return;
     }
     AddtionalInfo(sb, pp.VM);
 }