Main.xaml.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using DemoPractick.Model;
  2. using DemoPractick.Pages.Users;
  3. using DemoPractick.VM;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows;
  10. using System.Windows.Controls;
  11. using System.Windows.Data;
  12. using System.Windows.Documents;
  13. using System.Windows.Input;
  14. using System.Windows.Media;
  15. using System.Windows.Media.Imaging;
  16. using System.Windows.Navigation;
  17. using System.Windows.Shapes;
  18. namespace DemoPractick
  19. {
  20. /// <summary>
  21. /// Логика взаимодействия для MainWindow.xaml
  22. /// </summary>
  23. public static class FramePage
  24. {
  25. public static Frame page { get; set; }
  26. }
  27. public static class Data
  28. {
  29. public static Entities Sush { get; } = new Entities();
  30. }
  31. public partial class Main : Window
  32. {
  33. ViewModel VM = new ViewModel();
  34. public Main()
  35. {
  36. InitializeComponent();
  37. FramePage.page = MainPage;
  38. MainPage.Navigate(new Pages.Users.Products(VM));
  39. }
  40. }
  41. }