mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-07-19 00:01:19 -05:00
Update SAV_MysteryGiftDB.cs
This commit is contained in:
parent
58ae75cc6c
commit
56e06dcbc1
|
|
@ -200,12 +200,10 @@ private void PopulateComboBoxes()
|
|||
var comboAny = new ComboItem(MsgAny, -1);
|
||||
|
||||
var source = GameInfo.FilteredSources;
|
||||
var species = new List<ComboItem>(source.Species)
|
||||
{
|
||||
[0] = comboAny // Replace the first item with "Any"
|
||||
};
|
||||
var filteredSpecies = species.Where(z => RawDB.Any(mg => mg.Species == z.Value)).ToList();
|
||||
CB_Species.DataSource = filteredSpecies;
|
||||
var species = new List<ComboItem>(source.Species);
|
||||
species.RemoveAll(z => RawDB.All(mg => mg.Species != z.Value));
|
||||
species.Insert(0, comboAny);
|
||||
CB_Species.DataSource = species;
|
||||
|
||||
var items = new List<ComboItem>(source.Items);
|
||||
items.Insert(0, comboAny); CB_HeldItem.DataSource = items;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user