Exemplo n.º 1
0
        public static void ShowSellCarDialog(LogisticData db)
        {
            var win = new SellCarWindow();

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