public static void ShowSellCarDialog(LogisticData db)
        {
            var win = new SellCarWindow();

            win.db = db;
            win.CarsListView.ItemsSource = db.GetCarViews();
            win.ShowDialog();
        }
Beispiel #2
0
 private void BuyCarButton_Click(object sender, RoutedEventArgs e)
 {
     BuyCarWindow.ShowBuyDialog(db);
     CarsListView.ItemsSource = db.GetCarViews();
 }
Beispiel #3
0
 public MainWindow()
 {
     InitializeComponent();
     db = new LogisticData();
     CarsListView.ItemsSource = db.GetCarViews();
 }