public static void ShowSellCarDialog(LogisticData db) { var win = new SellCarWindow(); win.db = db; win.CarsListView.ItemsSource = db.GetCarViews(); win.ShowDialog(); }
private void BuyCarButton_Click(object sender, RoutedEventArgs e) { BuyCarWindow.ShowBuyDialog(db); CarsListView.ItemsSource = db.GetCarViews(); }
public MainWindow() { InitializeComponent(); db = new LogisticData(); CarsListView.ItemsSource = db.GetCarViews(); }