From 6fe918c7e2007c425e9345fb4a41522b848fa062 Mon Sep 17 00:00:00 2001 From: Kurt Date: Thu, 5 Aug 2021 18:59:21 -0700 Subject: [PATCH] Use filtered sources --- .../Subforms/Save Editors/Gen6/SAV_HallOfFame.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/PKHeX.WinForms/Subforms/Save Editors/Gen6/SAV_HallOfFame.cs b/PKHeX.WinForms/Subforms/Save Editors/Gen6/SAV_HallOfFame.cs index 525e33c56..a0aab6b26 100644 --- a/PKHeX.WinForms/Subforms/Save Editors/Gen6/SAV_HallOfFame.cs +++ b/PKHeX.WinForms/Subforms/Save Editors/Gen6/SAV_HallOfFame.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.Drawing; -using System.Linq; using System.Text; using System.Windows.Forms; using PKHeX.Core; @@ -42,22 +41,23 @@ private void Setup() CB_Move3.Items.Clear(); CB_Move4.Items.Clear(); + var filtered = GameInfo.FilteredSources; CB_Species.InitializeBinding(); - CB_Species.DataSource = new BindingSource(GameInfo.SpeciesDataSource.Skip(1).Where(s => s.Value <= SAV.MaxSpeciesID).ToList(), null); + CB_Species.DataSource = new BindingSource(filtered.Species, null); CB_Move1.InitializeBinding(); CB_Move2.InitializeBinding(); CB_Move3.InitializeBinding(); CB_Move4.InitializeBinding(); - var MoveList = GameInfo.MoveDataSource; + var MoveList = filtered.Moves; CB_Move1.DataSource = new BindingSource(MoveList, null); CB_Move2.DataSource = new BindingSource(MoveList, null); CB_Move3.DataSource = new BindingSource(MoveList, null); CB_Move4.DataSource = new BindingSource(MoveList, null); CB_HeldItem.InitializeBinding(); - CB_HeldItem.DataSource = new BindingSource(GameInfo.ItemDataSource, null); + CB_HeldItem.DataSource = new BindingSource(filtered.Items, null); } private void B_Cancel_Click(object sender, EventArgs e) => Close();