static async void RefreshExpeditionDropDown() { _userSelectsExpedition = false; if (null == _expeditions) { _expeditions = await _persistentStore.GetAllExpeditions(); } static_expedition_combo.DataSource = _expeditions.ToList(); static_expedition_combo.DisplayMember = "Name"; var currentExpedition = _expeditions.Where(a => a.Current).FirstOrDefault(); int itemIndex = -1; for (int index = 0; index < static_expedition_combo.Items.Count; index++) { var exp = (Expedition)static_expedition_combo.Items[index]; if (exp.ObjectId == currentExpedition.ObjectId) { itemIndex = index; _currentExpedition = exp; await _persistentStore.SetCurrentExpedition(exp); LogText(string.Format("Expedition {1} has {0} systems...", _persistentStore.StarSystems.Count(), _currentExpedition.Name), Color.Red); break; } } static_expedition_combo.SelectedIndex = itemIndex; PopulateSystemGrid(); _userSelectsExpedition = true; }