ParamValues() retval IList->ICollection, GetControl() arg. is a list of components, ver. 3.1.1598
This commit is contained in:
@@ -417,7 +417,7 @@ namespace TBF.UI.Bench.Components
|
||||
///
|
||||
/// Create a single component of the selected type
|
||||
///
|
||||
IComponentCfgCtrl cfgControl = cfg.GetControl();
|
||||
IComponentCfgCtrl cfgControl = cfg.GetControl(cmpntEntities);
|
||||
cfgControl.Config = cfg;
|
||||
cfgControl.Config.ItemNr = (cmpntEntities.Count > 0) ? (cmpntEntities[cmpntEntities.Count - 1].ItemNr + 1) : 1;
|
||||
|
||||
@@ -504,7 +504,7 @@ namespace TBF.UI.Bench.Components
|
||||
{
|
||||
ComponentParametersDlg cfgForm = new ComponentParametersDlg(component.Id);
|
||||
cfgForm.CmpntEntities = cmpntEntities;
|
||||
cfgForm.ComponentCfgCtrl = cfg.GetControl();
|
||||
cfgForm.ComponentCfgCtrl = cfg.GetControl(cmpntEntities);
|
||||
cfgForm.ComponentCfgCtrl.Config = cfg;
|
||||
DialogResult dr = cfgForm.ShowDialog();
|
||||
if (dr != DialogResult.OK) return;
|
||||
@@ -540,7 +540,7 @@ namespace TBF.UI.Bench.Components
|
||||
cfg.Name += Strings.New_name_copy;
|
||||
if (selectComponentTypeDlg.SelectedScriptName == null)
|
||||
{
|
||||
IComponentCfgCtrl cfgControl = cfg.GetControl();
|
||||
IComponentCfgCtrl cfgControl = cfg.GetControl(cmpntEntities);
|
||||
cfgControl.Config = cfg;
|
||||
cfgControl.Config.ItemNr = (cmpntEntities.Count > 0) ? (cmpntEntities[cmpntEntities.Count - 1].ItemNr + 1) : 1;
|
||||
|
||||
@@ -584,7 +584,7 @@ namespace TBF.UI.Bench.Components
|
||||
IComponentCfg cfg = TbfComponents.CmpntCfgFromCmpntEntity(newComponent);
|
||||
if (cfg != null)
|
||||
{
|
||||
IComponentCfgCtrl cfgControl = cfg.GetControl();
|
||||
IComponentCfgCtrl cfgControl = cfg.GetControl(cmpntEntities);
|
||||
cfgControl.Config = cfg;
|
||||
cfgControl.Config.Name = cfgControl.Config.Name + " imported";
|
||||
cfgControl.Config.ItemNr = (cmpntEntities.Count > 0) ? (cmpntEntities[cmpntEntities.Count - 1].ItemNr + 1) : 1;
|
||||
|
||||
Reference in New Issue
Block a user