private void cmb_vh_id_SelectedIndexChanged(object sender, EventArgs e) { ComboBox combo = sender as ComboBox; if (combo == null) { return; } List <ListBoxItem> filterlistBoxItems; string select_vh_id = combo.Text; if (BCFUtility.isMatche(KEY_WORD_ALL, select_vh_id)) { filterlistBoxItems = AllListBoxItems; } else { filterlistBoxItems = new List <ListBoxItem>(); foreach (var item in AllListBoxItems) { if (item.VhIDs.Contains(select_vh_id)) { filterlistBoxItems.Add(item); } } } HistoricalReply.setPlayInfo(select_vh_id, filterlistBoxItems.Select(item => item.Index).ToArray()); SetListBox(filterlistBoxItems); FocusVehicle?.Invoke(this, select_vh_id); }