MainWindow.xaml.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Windows;
  7. using System.Windows.Controls;
  8. using System.Windows.Data;
  9. using System.Windows.Documents;
  10. using System.Windows.Input;
  11. using System.Windows.Media;
  12. using System.Windows.Media.Imaging;
  13. using System.Windows.Navigation;
  14. using System.Windows.Shapes;
  15. using ПодготовкаКДемо1.Pages;
  16. namespace ПодготовкаКДемо1
  17. {
  18. /// <summary>
  19. /// Логика взаимодействия для MainWindow.xaml
  20. /// </summary>
  21. public partial class MainWindow : Window
  22. {
  23. ListTourPage listTourPage;
  24. TableHotelPage tableHotelPage;
  25. public MainWindow()
  26. {
  27. InitializeComponent();
  28. LoadPage.frame = MainFrame;
  29. listTourPage = new ListTourPage();
  30. tableHotelPage = new TableHotelPage();
  31. MainFrame.Navigate(listTourPage);
  32. }
  33. private void btnTourListGo_Click(object sender, RoutedEventArgs e)
  34. {
  35. MainFrame.Navigate(listTourPage);
  36. }
  37. private void btnHotelListGo_Click(object sender, RoutedEventArgs e)
  38. {
  39. MainFrame.Navigate(tableHotelPage);
  40. }
  41. private void btnCaptcha_Click(object sender, RoutedEventArgs e)
  42. {
  43. MainFrame.Navigate(new CaptchaPage());
  44. }
  45. }
  46. }