public TravelWarrantPanel(TravelWarrant travelWarrant) { InitializeComponent(); travelWarrantsSqlRepository = new TravelWarrantsSqlRepository(); this.travelWarrant = travelWarrant; SetTravelWarrantValues(); }
public BackupAndRestoreWindow() { InitializeComponent(); driversSqlRepository = new DriversSqlRepository(); vehiclesSqlRepository = new VehiclesSqlRepository(); travelRoutesSqlRepository = new TravelRoutesSqlRepository(); fuelCostsSqlRepository = new FuelCostsSqlRepository(); travelWarrantsSqlRepository = new TravelWarrantsSqlRepository(); servicesSqlRepository = new ServicesSqlRepository(); serviceItemsSqlRepository = new ServiceItemsSqlRepository(); }
public VehiclePanel(Vehicle vehicle) { InitializeComponent(); vehiclesSqlRepository = new VehiclesSqlRepository(); travelWarrantsSqlRepository = new TravelWarrantsSqlRepository(); travelRoutesSqlRepository = new TravelRoutesSqlRepository(); servicesSqlRepository = new ServicesSqlRepository(); this.vehicle = vehicle; SetVehicleValues(); }
public CreateTravelWarrantWindow() { InitializeComponent(); driversSqlRepository = new DriversSqlRepository(); vehiclesSqlRepository = new VehiclesSqlRepository(); fuelCostsSqlRepository = new FuelCostsSqlRepository(); travelRoutesSqlRepository = new TravelRoutesSqlRepository(); travelWarrantsSqlRepository = new TravelWarrantsSqlRepository(); TbDate.Text = DateTime.Now.ToString("MM/dd/yyyy"); TbTime.Text = DateTime.Now.ToString("HH:MM:ss"); }
public EditTravelWarrantWindow(TravelWarrant travelWarrant) { InitializeComponent(); driversSqlRepository = new DriversSqlRepository(); vehiclesSqlRepository = new VehiclesSqlRepository(); fuelCostsSqlRepository = new FuelCostsSqlRepository(); travelRoutesSqlRepository = new TravelRoutesSqlRepository(); travelWarrantsSqlRepository = new TravelWarrantsSqlRepository(); this.travelWarrant = travelWarrant; LoadTravelWarrantToWindow(travelWarrant); }
public TravelWarrantsMainMenu() { InitializeComponent(); travelWarrantsSqlRepository = new TravelWarrantsSqlRepository(); }