SplashPage.xaml.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using Windows.UI.Xaml;
  2. using Windows.UI.Xaml.Controls;
  3. namespace Breda_Tour.SplashScreen
  4. {
  5. public sealed partial class SplashPage : Page
  6. {
  7. //get current frame
  8. Frame f = (Frame)Window.Current.Content;
  9. public SplashPage()
  10. {
  11. this.InitializeComponent();
  12. }
  13. /// <author>Jannick van Ballegooijen</author>
  14. /// <desc>Temporary method to navigate to the main screen</desc>
  15. private void Button_Click(object sender, RoutedEventArgs e)
  16. {
  17. f.Navigate(typeof(MainPage));
  18. }
  19. /// <summary>
  20. /// <author>Bart Reedijk</author>
  21. /// Go to MainPage with English as the language
  22. /// </summary>
  23. private void Button_English_Click(object sender, RoutedEventArgs e)
  24. {
  25. App.Language = App.Languages[1];
  26. f.Navigate(typeof(MainPage));
  27. }
  28. /// <summary>
  29. /// <author>Bart Reedijk</author>
  30. /// Go to MainPage with Dutch as the language
  31. /// </summary>
  32. private void Button_Dutch_Click(object sender, RoutedEventArgs e)
  33. {
  34. App.Language = App.Languages[0];
  35. f.Navigate(typeof(MainPage));
  36. }
  37. }
  38. }