0
我目前正在为角色扮演游戏制作角色生成器。我有一种方法可以将能力得分和数组中的数据进行比较。我将数组转换为List。然后我将所有组合框指向数据源。我将它们分开绑定,因此它们都不会更改为相同的数字。不幸的是,我在选择一个列表时从列表中删除一个数字时遇到了很多问题。这是迄今为止的样子。任何帮助,将不胜感激。提前致谢。使用多个组合框更改单个数据源
List<int> abilityList = allAtribs.ToList();
strCombo.DataSource = new BindingSource(abilityList, null);
dexCombo.DataSource = new BindingSource(abilityList, null);
conCombo.DataSource = new BindingSource(abilityList, null);
intCombo.DataSource = new BindingSource(abilityList, null);
wisCombo.DataSource = new BindingSource(abilityList, null);
chaCombo.DataSource = new BindingSource(abilityList, null);