public MainWindow() { InitializeComponent(); productGrid.ItemsSource = showProducts.Show().ToList(); shopGrid.ItemsSource = showShop.Show().ToList(); comboShop.ItemsSource = showShop.Show().ToList(); productShopGrid.ItemsSource = showProducts.Show().ToList(); comboShop.DisplayMemberPath = "Name"; }
private void ShowProducts_OnClick(object sender, RoutedEventArgs e) { var showProducts = new ShowProducts(_applicationManager.getProducts()); showProducts.Show(); }