MainWindow.xaml.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. namespace Детский_сад
  16. {
  17. /// <summary>
  18. /// Логика взаимодействия для MainWindow.xaml
  19. /// </summary>
  20. public partial class MainWindow : Window
  21. {
  22. public MainWindow()
  23. {
  24. InitializeComponent();
  25. Base.mainFrame = frm;
  26. Base.btnMain = btnMain;
  27. Base.btnReg = btnReg;
  28. Base.btnAvtor = btnAvtor;
  29. Base.mainFrame.Navigate(new Main());
  30. Base.KE = new KindergartenEntities();
  31. }
  32. private void btnReg_Click(object sender, RoutedEventArgs e)
  33. {
  34. Base.mainFrame.Navigate(new Reg());
  35. Base.leaveMain();
  36. }
  37. private void btnAvtor_Click(object sender, RoutedEventArgs e)
  38. {
  39. Base.mainFrame.Navigate(new Avtor());
  40. Base.leaveMain();
  41. }
  42. private void btnMain_Click(object sender, RoutedEventArgs e)
  43. {
  44. Base.mainFrame.Navigate(new Main());
  45. }
  46. private void btnAdvertising_Click(object sender, RoutedEventArgs e)
  47. {
  48. Base.mainFrame.Navigate(new Advertisement());
  49. }
  50. }
  51. }