public PlaneBookingForm(IPlaneBookService _planeBookService, IPlaneService _planeService, ICargoService _cargoService, ICustomerService _customerService) { InitializeComponent(); this._planeBookService = _planeBookService; this._planeService = _planeService; this._cargoService = _cargoService; this._customerService = _customerService; ddlPlaneType.SelectedIndex = 0; ddlPlaneName.SelectedIndex = 0; ddlCargoItem.SelectedIndex = 0; ddlCustName.SelectedIndex = 0; LoadAllBookingsCurrentDate(); }
public MainForm(IPlaneBookService _planeBookService, IPlaneService _planeService, ICargoService _cargoService, ICustomerService _customerService) { InitializeComponent(); this._planeBookService = _planeBookService; this._planeService = _planeService; this._cargoService = _cargoService; this._customerService = _customerService; this.customerForm = null; this.planeForm = null; this.cargoForm = null; this.bookingForm = null; LoadBookForm(); }