private void RebuildMappingInfo(IBiMap<int, string> latestData) { AutoCompleteStringCollection autoComplete = new AutoCompleteStringCollection(); foreach (var entry in latestData.EnumerateRightToLeft()) { autoComplete.Add(entry.Key); if (this.SelectedId == entry.Value) { this.NameText.InvokeEx(() => this.NameText.Text = entry.Key); } } this.NameText.InvokeEx(() => this.NameText.AutoCompleteCustomSource = autoComplete); this.SetSelectionFromText(); }