// Reset Stuff ########################################## private async void Delete_Click(object sender, RoutedEventArgs e) { ContentDialog Confirm; var res = ResourceLoader.GetForCurrentView(); string ConfirmMunchkins = res.GetString("ConfirmMunchkins"); string ConfirmStatistics = res.GetString("ConfirmStatistics"); string ConfirmAll = res.GetString("ConfirmAll"); switch (((Button)sender).Name) { case "DeleteMunchkins": Confirm = new YesNo(ConfirmMunchkins); Confirm.PrimaryButtonClick += new TypedEventHandler <ContentDialog, ContentDialogButtonClickEventArgs>(DeleteMunchkinsOK); break; case "DeleteStatistics": Confirm = new YesNo(ConfirmStatistics); Confirm.PrimaryButtonClick += new TypedEventHandler <ContentDialog, ContentDialogButtonClickEventArgs>(DeleteStatisticsOK); break; case "DeleteAll": Confirm = new YesNo(ConfirmAll); Confirm.PrimaryButtonClick += new TypedEventHandler <ContentDialog, ContentDialogButtonClickEventArgs>(DeleteAllOK); break; default: Confirm = new YesNo("Etwas ist schief gelaufen, nix wird geschehen."); break; } Confirm.SecondaryButtonClick += new TypedEventHandler <ContentDialog, ContentDialogButtonClickEventArgs>(ContentDialog_SecondaryButtonClick); await Confirm.ShowAsync(); SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = AppViewBackButtonVisibility.Visible; }