MainPage.xaml.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Net;
  5. using System.Windows;
  6. using System.Windows.Controls;
  7. using System.Windows.Documents;
  8. using System.Windows.Input;
  9. using System.Windows.Media;
  10. using System.Windows.Media.Animation;
  11. using System.Windows.Shapes;
  12. using Microsoft.Phone.Controls;
  13. using System.Windows.Media.Imaging;
  14. namespace IDTemplate
  15. {
  16. public partial class MainPage : PhoneApplicationPage
  17. {
  18. // Constructor
  19. public MainPage()
  20. {
  21. InitializeComponent();
  22. }
  23. private void onBusinessTapped(object sender, System.Windows.Input.GestureEventArgs e)
  24. {
  25. NavigationService.Navigate(new Uri("/Business.xaml?language=Business", UriKind.Relative));
  26. }
  27. private void onStudentTapped(object sender, System.Windows.Input.GestureEventArgs e)
  28. {
  29. NavigationService.Navigate(new Uri("/Student.xaml?language=Student", UriKind.Relative));
  30. }
  31. private void onEmployeeTapped(object sender, System.Windows.Input.GestureEventArgs e)
  32. {
  33. NavigationService.Navigate(new Uri("/Employee.xaml?language=Employee", UriKind.Relative));
  34. }
  35. private void onVisitingTapped(object sender, System.Windows.Input.GestureEventArgs e)
  36. {
  37. NavigationService.Navigate(new Uri("/Visiting.xaml?language=Visiting", UriKind.Relative));
  38. }
  39. }
  40. }