private void CmbStation_SelectedIndexChanged(object sender, EventArgs e) { ComboBox comboBox = (ComboBox)sender; Station stationSelected = (Station)comboBox.SelectedItem; cmbResponseId.SelectedIndex = -1; lblComment.Text = ""; lblVehicles.Text = ""; if (stationSelected != null) { StationResponseBLL stationResponseBll = new StationResponseBLL(); cmbResponseId.DataSource = stationResponseBll.GetByStation(stationSelected.ID); vehicles = vehicleBLL.GetStationVehicles(stationSelected.ID); lblVehicles.Text = vehicles.Count.ToString() + " vehicles available"; } }