MainWindow.xaml.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 mylib;
  16. namespace WPF01
  17. {
  18. /// <summary>
  19. /// Логика взаимодействия для MainWindow.xaml
  20. /// </summary>
  21. public partial class MainWindow : Window
  22. {
  23. public MainWindow()
  24. {
  25. InitializeComponent();
  26. PageNavigation.authorization = new pages.Authorization();
  27. PageNavigation.registration = new pages.Registration();
  28. PageNavigation.mainPage = new pages.MainPage();
  29. PageNavigation.director = new pages.Director();
  30. PageNavigation.userInfo = new pages.UserInfo();
  31. PageNavigation.mainWindow = this;
  32. MainFrame.Navigate(new pages.Product());
  33. MyClass.Sum(34, 45);
  34. }
  35. private void Label_MouseUp(object sender, MouseButtonEventArgs e)
  36. {
  37. MainFrame.Navigate(new pages.UserInfo());
  38. }
  39. }
  40. }