Пример #1
0
        private async void AddNotExistingPlaylists_Click(object sender, RoutedEventArgs e)
        {
            await LoadingPage.NavigateTo();

            await Library.Current.AddNotExistingPlaylists();

            LoadingPage.GoBack();
        }
Пример #2
0
        private async void UpdateThisPlaylist_Click(object sender, RoutedEventArgs e)
        {
            await LoadingPage.NavigateTo();

            await playlist.UpdateSongsFromStorage();

            LoadingPage.GoBack();
        }
Пример #3
0
        private async void ResetLibraryFromStorage_Click(object sender, RoutedEventArgs e)
        {
            await LoadingPage.NavigateTo();

            await Library.Current.ResetLibraryFromStorage();

            LoadingPage.GoBack();
        }
Пример #4
0
        private async void SearchForNewSongs_Click(object sender, RoutedEventArgs e)
        {
            await LoadingPage.NavigateTo();

            await playlist.SearchForNewSongs();

            LoadingPage.GoBack();
        }
Пример #5
0
        private async void SearchForNewSongsPlaylist_Click(object sender, RoutedEventArgs e)
        {
            await LoadingPage.NavigateTo();

            Playlist playlist = (sender as MenuFlyoutItem).DataContext as Playlist;
            await playlist.SearchForNewSongs();

            LoadingPage.GoBack();
        }
Пример #6
0
        private async void UpdatePlaylist_Click(object sender, RoutedEventArgs e)
        {
            Playlist playlist = (sender as MenuFlyoutItem).DataContext as Playlist;

            await LoadingPage.NavigateTo();

            await playlist.UpdateSongsFromStorage();

            LoadingPage.GoBack();
        }
Пример #7
0
        public LoadingPage()
        {
            this.InitializeComponent();

            if (open)
            {
                GoBack();
            }

            open = true;
            page = this;
        }
Пример #8
0
        private async void RefreshThisPlaylist_Click(object sender, RoutedEventArgs e)
        {
            await LoadingPage.NavigateTo();

            await playlist.LoadSongsFromStorage();

            LoadingPage.GoBack();

            if (playlist.IsEmptyOrLoading)
            {
                GoBack();
            }
        }