MainWindow.xaml.cs 957 B

12345678910111213141516171819202122232425262728293031323334
  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 Write_erase.Classes;
  16. namespace Write_erase
  17. {
  18. /// <summary>
  19. /// Логика взаимодействия для MainWindow.xaml
  20. /// </summary>
  21. public partial class MainWindow : Window
  22. {
  23. ViewModel.CaptchaViewModel VM = new ViewModel.CaptchaViewModel();
  24. public MainWindow()
  25. {
  26. InitializeComponent();
  27. DataContext = VM;
  28. DataBaseClass.entity = new Entities();
  29. FrameClass.MFrame = mainFrame;
  30. FrameClass.MFrame.Navigate(new MainPages.AutorizePage());
  31. }
  32. }
  33. }