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; }
public AddRequest(Request edit) { InitializeComponent(); comboDriver.ItemsSource = DriverSql.GetDrivers(); comboCar.ItemsSource = CarSql.GetCars(); this.edit = edit; DataContext = edit; }