MainPage.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. namespace DemoProb.Pages
  17. {
  18. /// <summary>
  19. /// Логика взаимодействия для MainPage.xaml
  20. /// </summary>
  21. public partial class MainPage : Page
  22. {
  23. List<Service> listBoxItems = BaseClass.BaseSchool.Service.ToList();
  24. public MainPage()
  25. {
  26. InitializeComponent();
  27. ListServices.ItemsSource = listBoxItems;
  28. //string color = (Color.FromRgb(231, 250, 191)).ToString();
  29. }
  30. private void BorderList_Loaded(object sender, RoutedEventArgs e)
  31. {
  32. bool res = (bool)Application.Current.Properties["Admin"];
  33. //if (res == true) StackPanelButton.Visibility = Visibility.Visible;
  34. //else StackPanelButton.Visibility = Visibility.Collapsed;
  35. }
  36. }
  37. }