ApplicationWindow.xaml.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 Курсовой_проект_3._1
  15. {
  16. /// <summary>
  17. /// Логика взаимодействия для ApplicationWindow.xaml
  18. /// </summary>
  19. public partial class ApplicationWindow : Window
  20. {
  21. public ApplicationWindow()
  22. {
  23. InitializeComponent();
  24. List<Country> countryList = new List<Country>
  25. {
  26. new Country{ ItemName="Russia"},
  27. new Country{ ItemName="Ukraine"},
  28. new Country{ ItemName="USA"},
  29. new Country{ ItemName="Canada"},
  30. new Country{ ItemName="Kazahstan"}
  31. };
  32. CountryFilterLB.ItemsSource = countryList;
  33. }
  34. private void PlayerListShowButton_Click(object sender, RoutedEventArgs e)
  35. {
  36. MessageBox.Show("kek");
  37. }
  38. }
  39. //
  40. public class Country
  41. {
  42. public string ItemName { get; set;}
  43. }
  44. }