ActiveWindow.xaml.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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.Shapes;
  14. namespace WindowedMyApp
  15. {
  16. /// <summary>
  17. /// Логика взаимодействия для ActiveWindow.xaml
  18. /// </summary>
  19. public partial class ActiveWindow : Window
  20. {
  21. public ActiveWindow()
  22. {
  23. InitializeComponent();
  24. MainFrame.frame = ActiveFrame;
  25. }
  26. private void toTour_Click(object sender, RoutedEventArgs e)
  27. {
  28. MainFrame.frame.Navigate(new StartPage());
  29. }
  30. private void toGif_Click(object sender, RoutedEventArgs e)
  31. {
  32. MainFrame.frame.Navigate(new GifPage());
  33. }
  34. private void toDiagram_Click(object sender, RoutedEventArgs e)
  35. {
  36. MainFrame.frame.Navigate(new DiagramPage());
  37. }
  38. private void toUsersInfo_Click(object sender, RoutedEventArgs e)
  39. {
  40. MainFrame.frame.Navigate(new UsersInfo());
  41. }
  42. }
  43. }