Esempio n. 1
0
 public AddCar()
 {
     InitializeComponent();
     comboDriver.ItemsSource = DriverSql.GetDrivers();
     edit        = new Car();
     DataContext = edit;
 }
Esempio n. 2
0
 public AddCar(Car edit)
 {
     InitializeComponent();
     comboDriver.ItemsSource = DriverSql.GetDrivers();
     this.edit   = edit;
     DataContext = edit;
 }
Esempio n. 3
0
 public AddRequest(Request edit)
 {
     InitializeComponent();
     comboDriver.ItemsSource = DriverSql.GetDrivers();
     comboCar.ItemsSource    = CarSql.GetCars();
     this.edit   = edit;
     DataContext = edit;
 }