private async void FinishDialog() { string text; progressRing.IsActive = false; Json.Write_Json(Source_1.Text, Source_2.Text, Source_3.Text, Audio.Text, Json.Json_mp3, Json.Json_alac, Json.Json_flac, Json.Json_aac); if (count_song == 0 && count_song_insert - count_song == 0 && count_song_up == 0 && count_delete_song == 0) { text = "Новых файлов нет!"; } else { text = "Перенесено " + count_song + " файла(ов)." + "\nЗагружено из папки " + (count_song_insert - count_song) + " файла(ов)." + "\nИзменено " + (count_song_up) + " файла(ов)." + "\nУдалено " + (count_delete_song) + " файла(ов)."; } ContentDialog noWifiDialog = new ContentDialog { Title = "Перенос музыкальных файлов завершен", Content = text, PrimaryButtonText = "Да" }; ContentDialogResult result = await noWifiDialog.ShowAsync(); if (result == ContentDialogResult.Primary) { Frame.Navigate(typeof(Edit_Tags)); } }
private async void Accept_Click(object sender, RoutedEventArgs e) { Json.Write_Json(Json.Json_source_1, Json.Json_source_2, Json.Json_source_3, Json.Json_audioteca, Index_comboboxBack(mp3.SelectedIndex), Index_comboboxBack(alac.SelectedIndex), Index_comboboxBack(flac.SelectedIndex), Index_comboboxBack(aac.SelectedIndex)); var dialog = new MessageDialog("Настройки успешно сохранены"); dialog.Commands.Add(new UICommand { Label = "Okay", Id = 0 }); await dialog.ShowAsync(); }