DataEntry.Uni Items passed in a list, w/o limits, Cfg with arrays, TODO: TestStartEndForm
This commit is contained in:
@@ -71,8 +71,9 @@ namespace TBF.Rig.Configs.ParamsProvider
|
||||
foreach (var p in parents) parentComboBox.Items.Add(p.Name);
|
||||
}
|
||||
|
||||
editors = new Control[paramsProvider.ParamsCount()];
|
||||
for (int i = 0; i < paramsProvider.ParamsCount(); i++)
|
||||
int paramsCount = paramsProvider.ParamsCount();
|
||||
editors = new Control[paramsCount];
|
||||
for (int i = 0; i < paramsCount; i++)
|
||||
{
|
||||
ICollection<string> values = paramsProvider.ParamValues(i);
|
||||
if (values == null)
|
||||
@@ -130,7 +131,8 @@ namespace TBF.Rig.Configs.ParamsProvider
|
||||
if (parentComboBox.Visible) parentComboBox.Text = Config.ParentName;
|
||||
|
||||
paramsListViewEx.Items.Clear();
|
||||
for (int i = 0; i < paramsProvider.ParamsCount(); i++)
|
||||
int paramsCount = paramsProvider.ParamsCount();
|
||||
for (int i = 0; i < paramsCount; i++)
|
||||
{
|
||||
ListViewItem lvi = new ListViewItem(paramsProvider.ParamName(i));
|
||||
lvi.SubItems.Add(paramsProvider.ToString(i));
|
||||
|
||||
Reference in New Issue
Block a user