MainWindow.xaml.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using DemoProb.Classes;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows;
  8. using System.Windows.Controls;
  9. using System.Windows.Data;
  10. using System.Windows.Documents;
  11. using System.Windows.Input;
  12. using System.Windows.Media;
  13. using System.Windows.Media.Imaging;
  14. using System.Windows.Navigation;
  15. using System.Windows.Shapes;
  16. using DemoProb.Pages;
  17. namespace DemoProb
  18. {
  19. /// <summary>
  20. /// Логика взаимодействия для MainWindow.xaml
  21. /// </summary>
  22. public partial class MainWindow : Window
  23. {
  24. public MainWindow()
  25. {
  26. InitializeComponent();
  27. Classes.FrameMain.Frame = FrameWindow;
  28. BaseClass.BaseSchool = new BaseSchool();
  29. BackNavigation.Background = new SolidColorBrush(Color.FromRgb(4, 160, 255));
  30. SignIn.Background = new SolidColorBrush(Color.FromRgb(4, 160, 255));
  31. FrameWindow.Navigate(new MainPage());
  32. }
  33. private void SignIn_Click(object sender, RoutedEventArgs e)
  34. {
  35. if(Password.ToString() == "0000")
  36. Application.Current.Properties["Admin"] = true;
  37. }
  38. }
  39. }