Kurt 2018-09-13 22:10:35 -07:00
parent 87b270dd17
commit 0de49c915a

View file

@ -271,7 +271,7 @@ namespace PKHeX.WinForms.Controls
LegalityChanged?.Invoke(Legality.Valid, null); LegalityChanged?.Invoke(Legality.Valid, null);
} }
private List<ComboItem> MoveDataAllowed = new List<ComboItem>(); private IReadOnlyList<ComboItem> MoveDataAllowed = new List<ComboItem>();
private void ReloadMoves(IReadOnlyCollection<int> moves) private void ReloadMoves(IReadOnlyCollection<int> moves)
{ {
@ -1820,7 +1820,7 @@ namespace PKHeX.WinForms.Controls
CB_GameOrigin.DataSource = new BindingSource(GameInfo.VersionDataSource.Where(g => gamelist.Contains((GameVersion)g.Value)).ToList(), null); CB_GameOrigin.DataSource = new BindingSource(GameInfo.VersionDataSource.Where(g => gamelist.Contains((GameVersion)g.Value)).ToList(), null);
// Set the Move ComboBoxes too.. // Set the Move ComboBoxes too..
GameInfo.Strings.MoveDataSource = (HaX ? GameInfo.HaXMoveDataSource : GameInfo.LegalMoveDataSource).Where(m => m.Value <= SAV.MaxMoveID).ToList(); // Filter Z-Moves if appropriate MoveDataAllowed = GameInfo.Strings.MoveDataSource = (HaX ? GameInfo.HaXMoveDataSource : GameInfo.LegalMoveDataSource).Where(m => m.Value <= SAV.MaxMoveID).ToList(); // Filter Z-Moves if appropriate
foreach (var cb in Moves.Concat(Relearn)) foreach (var cb in Moves.Concat(Relearn))
{ {
cb.InitializeBinding(); cb.InitializeBinding();