ClientsWindow.xaml.cs 932 B

123456789101112131415161718192021222324252627282930313233343536
  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.Shapes;
  14. namespace CopyCenter
  15. {
  16. /// <summary>
  17. /// Логика взаимодействия для ClientsWindow.xaml
  18. /// </summary>
  19. public partial class ClientsWindow : Window
  20. {
  21. gr672_liiEntities db = new gr672_liiEntities();
  22. public ClientsWindow()
  23. {
  24. InitializeComponent();
  25. ClientList.ItemsSource = db.Client.ToList();
  26. }
  27. private void Exit_Click(object sender, RoutedEventArgs e)
  28. {
  29. MenuWindow mw = new MenuWindow();
  30. mw.Show();
  31. this.Close();
  32. }
  33. }
  34. }