public SAV_PokedexSWSH(SAV8SWSH sav) { InitializeComponent(); WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage); SAV = (SAV8SWSH)(Origin = sav).Clone(); Dex = SAV.Blocks.Zukan; CL = new[] { CHK_L1, CHK_L2, CHK_L3, CHK_L4, CHK_L5, CHK_L6, CHK_L7, CHK_L8, CHK_L9 }; CHK = new[] { CLB_1, CLB_2, CLB_3, CLB_4 }; // Clear Listbox and ComboBox LB_Species.Items.Clear(); CB_Species.Items.Clear(); foreach (var c in CHK) { c.Items.Clear(); for (int j = 0; j < 63; j++) { c.Items.Add($"{j:00} - N/A"); } c.Items.Add("Gigantamax"); } // Fill List CB_Species.InitializeBinding(); var species = GameInfo.FilteredSources.Species.Where(z => Zukan8.DexLookup.ContainsKey(z.Value)).ToArray(); CB_Species.DataSource = new BindingSource(species, null); var Species = GameInfo.Strings.Species; var names = Zukan8.GetEntryNames(Species); foreach (var n in names) { LB_Species.Items.Add(n); } Loading = false; LB_Species.SelectedIndex = 0; CB_Species.KeyDown += WinFormsUtil.RemoveDropCB; CanSave = true; }