IComponentCfg : GetControl( ) --> GetControl(IList<Component> cmpntEntities)

This commit is contained in:
Milan Hanajik
2021-09-16 14:21:18 +02:00
parent 64a5f7ceb8
commit abb2375500
145 changed files with 220 additions and 180 deletions
+5 -4
View File
@@ -5,6 +5,7 @@ using System.Windows.Forms;
using Config.Entities;
using TBF.BenchControl;
using TBF.BenchControl.Generic;
using TBF.UI.Bench.Components;
namespace ResultsBrowser.Forms
{
@@ -87,13 +88,13 @@ namespace ResultsBrowser.Forms
printerCfg = printerFactory.CmpntCfgFromCmpntEntity(cmpnt);
}
IComponentCfgCtrl cfgControl = printerCfg.GetControl();
ComponentParametersDlg cfgForm = new ComponentParametersDlg();
cfgForm.CmpntEntities = new List<Component>();
IComponentCfgCtrl cfgControl = printerCfg.GetControl(cfgForm.CmpntEntities);
cfgControl.Config = printerCfg;
cfgControl.Config.ItemNr = 0;
TBF.UI.Bench.Components.ComponentParametersDlg cfgForm = new TBF.UI.Bench.Components.ComponentParametersDlg();
cfgForm.CmpntEntities = new List<Component>();
cfgForm.ComponentCfgCtrl = cfgControl;
cfgForm.UnlockAfterStart = true;
DialogResult dr = cfgForm.ShowDialog();