Exemplo n.º 1
0
        async void RepairMusicus(object sender, RoutedEventArgs e)
        {
            if (BackgroundMediaPlayer.Current.CurrentState == MediaPlayerState.Playing)
            {
                ToastManager.ShowError("Stop playback first.");
                return;
            }
            else
            {
                await Windows.ApplicationModel.Core.CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal,
                                                                                                            async() =>
                {
                    var md = new MessageDialog(
                        "This will delete everything from airstem and import your data again.",
                        "Are you sure you want to refresh?");
                    md.Commands.Add(new UICommand("Ok"));
                    md.Commands.Add(new UICommand("Cancel"));

                    var result = await md.ShowAsync();
                    if (result != null && result.Label.ToLower().Equals("ok"))
                    {
                        SheetUtility.OpenImportRefreshPage(3);
                    }
                });
            }
        }
Exemplo n.º 2
0
 private void ImportSongs(object sender, RoutedEventArgs e)
 {
     SheetUtility.OpenImportRefreshPage(1);
 }
Exemplo n.º 3
0
 void ImportVideos(object sender, RoutedEventArgs e)
 {
     SheetUtility.OpenImportRefreshPage(2);
 }