private void BackButton_Click(object sender, RoutedEventArgs e) { switch (APPDATA.app_data.CURRENT_PAGE) { case AppPage.HomePage: return; case AppPage.AchievementPage: case AppPage.OptionPage: case AppPage.FreeStylePage: case AppPage.SelectChapterPage: APPDATA.app_data.MoveTo(AppPage.HomePage); break; case AppPage.GamePage: APPDATA.app_data.MoveTo(AppPage.SelectGamePage, SelectGame.localChapter); break; case AppPage.SelectGamePage: APPDATA.app_data.MoveTo(AppPage.SelectChapterPage); break; case AppPage.AboutPage: optionFrame.Navigate(typeof(Option)); APPDATA.app_data.MoveTo(AppPage.OptionPage); break; } BGMPlayer.PlayButton(); }
private void Achievement_Click(object sender, RoutedEventArgs e) { BGMPlayer.PlayButton(); APPDATA.app_data.MoveTo(AppPage.AchievementPage); //Frame.Navigate(typeof(Achievement)); }
private void Option_Click(object sender, RoutedEventArgs e) { BGMPlayer.PlayButton(); APPDATA.app_data.MoveTo(AppPage.OptionPage); //Frame.Navigate(typeof(Option)); }
private void Freestyle_Click(object sender, RoutedEventArgs e) { BGMPlayer.PlayButton(); APPDATA.app_data.MoveTo(AppPage.FreeStylePage); }
private void Game_Click(object sender, RoutedEventArgs e) { BGMPlayer.PlayButton(); APPDATA.app_data.MoveTo(AppPage.SelectChapterPage); }