private void GetZoneMaps() { var maps = MapsHelper.GetAll().Select(m => m.Name); Utils.InvokeOn(this, () => { cmbox_ZoneMaps.Items.Clear(); cmbox_ZoneMaps.Items.Add("No map selected"); if (maps.Count() > 0) { cmbox_ZoneMaps.Items.AddRange(maps.ToArray()); } cmbox_ZoneMaps.SelectedIndex = 0; }); }
private void GetMiningZones() { var zones = MapsHelper.GetAll().Select(m => m.Name).OrderBy(m => m); if (zones.Count() < 1) { return; } Utils.InvokeOn(this, () => { cmbox_ZonesList.Items.Clear(); cmbox_ZonesList.Items.AddRange(zones.ToArray()); cmbox_ZonesList.SelectedIndex = 0; }); }