private void stationBoardDropdown_TextUpdate(object sender, EventArgs e) { //Stationboard Button Disabled wenn keine Station angegeben if (stationBoardDropdown.Text.Length > 0) { cmdStationBoard.Enabled = true; } else { cmdStationBoard.Enabled = false; } try { Object[] dropdownValues = Search.getDropdownValues(stationBoardDropdown.Text, stationBoardDropdown, transport); // Werte nur ins Dropdown schreiben wenn nicht Null if (dropdownValues != null) { stationBoardDropdown.Items.AddRange(dropdownValues); } } catch (Exception exc) { MessageBox.Show(msgError + exc.Message); } }
private void endStationDropdown_TextUpdate(object sender, EventArgs e) { try { enableConnectionButton(); Object[] dropdownValues = Search.getDropdownValues(endStationDropdown.Text, endStationDropdown, transport); // Werte nur ins Dropdown schreiben wenn nicht Null if (dropdownValues != null) { endStationDropdown.Items.AddRange(dropdownValues); } } catch (Exception exc) { MessageBox.Show(msgError + exc.Message); } }