public VehicleForm() { _vehicleService = new VehicleBLL(); InitializeComponent(); vehicleTypeBll = new VehicleTypeBLL(); stationBll = new StationBLL(); vehicleTypes = vehicleTypeBll.GetAll(); stations = stationBll.GetAll(); cmbVehicleTypeId.DataSource = vehicleTypes; cmbStationId.DataSource = stations; }
public IncidentListForm() { _incidentService = new IncidentBLL(); InitializeComponent(); stationBll = new StationBLL(); stations = stationBll.GetAll(); vehicleBLL = new VehicleBLL(); cmbStation.DataSource = stations; txtFirstname.Text = ApplicationCookie.CurrentUser.Name; txtLastname.Text = ApplicationCookie.CurrentUser.Surname; }
public StationResponseForm() { _stationResponseService = new StationResponseBLL(); InitializeComponent(); responseBll = new ResponseBLL(); stationBLL = new StationBLL(); vehicleTypeBLL = new VehicleTypeBLL(); responses = responseBll.GetAll(); stations = stationBLL.GetAll(); vehicleTypes = vehicleTypeBLL.GetAll(); cmbResponseId.DataSource = responses; cmbStationId.DataSource = stations; cmbVehicleTypeId.DataSource = vehicleTypes; }
private void RefreshStationList() { dgvStationList.DataSource = _stationService.GetAll(); }