private void SetupComboBoxes() { CB_Ball.InitializeBinding(); CB_HeldItem.InitializeBinding(); CB_Species.InitializeBinding(); CB_Nature.InitializeBinding(); CB_Ball.DataSource = new BindingSource(GameInfo.BallDataSource.Where(b => b.Value <= SAV.MaxBallID).ToList(), null); CB_HeldItem.DataSource = new BindingSource(GameInfo.ItemDataSource.Where(i => i.Value < SAV.MaxItemID).ToList(), null); CB_Species.DataSource = new BindingSource(GameInfo.SpeciesDataSource.Where(s => s.Value <= SAV.MaxSpeciesID).ToList(), null); CB_Nature.DataSource = new BindingSource(GameInfo.NatureDataSource, null); CB_Move1.InitializeBinding(); CB_Move2.InitializeBinding(); CB_Move3.InitializeBinding(); CB_Move4.InitializeBinding(); var MoveList = GameInfo.MoveDataSource; 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); }