From 54a527740693f45a267fc20f8756f708dab5bed7 Mon Sep 17 00:00:00 2001 From: Kenneth van Ewijk Date: Tue, 19 Jan 2016 14:34:11 +0100 Subject: [PATCH] Added basic score page --- YJMPD-UWP/MainPage.xaml.cs | 6 +++- YJMPD-UWP/Themes/DefaultStyles.xaml | 13 +++++++- YJMPD-UWP/ViewModels/ScoreVM.cs | 46 ++++++++++++++++++++++++++++ YJMPD-UWP/Views/AboutView.xaml | 2 +- YJMPD-UWP/Views/MatchView.xaml | 2 +- YJMPD-UWP/Views/ScoreView.xaml | 47 +++++++++++++++++++++++++++++ YJMPD-UWP/Views/ScoreView.xaml.cs | 36 ++++++++++++++++++++++ YJMPD-UWP/Views/SettingsView.xaml | 2 +- YJMPD-UWP/Views/StatisticsView.xaml | 2 +- YJMPD-UWP/YJMPD-UWP.csproj | 8 +++++ 10 files changed, 158 insertions(+), 6 deletions(-) create mode 100644 YJMPD-UWP/ViewModels/ScoreVM.cs create mode 100644 YJMPD-UWP/Views/ScoreView.xaml create mode 100644 YJMPD-UWP/Views/ScoreView.xaml.cs diff --git a/YJMPD-UWP/MainPage.xaml.cs b/YJMPD-UWP/MainPage.xaml.cs index 5bb803b..c9d2b7e 100644 --- a/YJMPD-UWP/MainPage.xaml.cs +++ b/YJMPD-UWP/MainPage.xaml.cs @@ -140,7 +140,11 @@ namespace YJMPD_UWP private async void BackToGame_Click(object sender, RoutedEventArgs e) { - bool b = await Util.ShowConfirmDialog("Not implemented", "", Util.DialogType.OKCANCEL); + bool b = await Util.ShowConfirmDialog("View Scores", "Go to the scores page (test)?", Util.DialogType.OKCANCEL); + if(b) + { + App.Navigate(typeof(ScoreView)); + } } private void Content_ManipulationCompleted(object sender, ManipulationCompletedRoutedEventArgs e) diff --git a/YJMPD-UWP/Themes/DefaultStyles.xaml b/YJMPD-UWP/Themes/DefaultStyles.xaml index d574031..1d59217 100644 --- a/YJMPD-UWP/Themes/DefaultStyles.xaml +++ b/YJMPD-UWP/Themes/DefaultStyles.xaml @@ -8,7 +8,13 @@ - + + @@ -23,6 +29,11 @@ + +