private void AddressSuggestions_Updated(object sender, AddressSuggestionsUpdatedEventArgs eventArgs) { try { ThreadingHelper.BeginUpdate(comboBox1); ThreadingHelper.ClearItems(comboBox1); if (eventArgs.AddressSuggestions.Count > 0) { foreach (var addressSuggestion in eventArgs.AddressSuggestions) { var item = new KeyValuePair <string, string>(addressSuggestion.Key, addressSuggestion.Value.ToUpper()); ThreadingHelper.AddItem(comboBox1, item); } ThreadingHelper.SetDroppedDown(comboBox1, true); ThreadingHelper.SetVisible(comboBox1, true); } else { ThreadingHelper.SetDroppedDown(comboBox1, false); } } finally { ThreadingHelper.EndUpdate(comboBox1); } }