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