MainWindow.xaml.cs 1.3 KB

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