Munich : 'Drucker' removed from ProcedureDlg ... Process parameters controls
This commit is contained in:
parent
56f8d64fc8
commit
efc3efcbfb
@ -256,18 +256,24 @@ namespace TBF
|
||||
}
|
||||
}
|
||||
|
||||
/// Create a control for the printed protocol.
|
||||
IComponent printer = BenchControl.TbfComponents.FindComponent(LoadedProcedure.ResultsPrinter, TbfComponents);
|
||||
if (printer != null)
|
||||
{
|
||||
IList<IComponent> printers = new List<IComponent>();
|
||||
printers.Add(printer);
|
||||
///---------------------
|
||||
/// Other components
|
||||
///---------------------
|
||||
|
||||
TabPage nwTab = new TabPage(Strings.Printer);
|
||||
ProcedureParamsCtrl nwCtrl = new ProcedureParamsCtrl(this, printers, false);
|
||||
procedureParamsCtrls.Add(nwCtrl);
|
||||
nwTab.Controls.Add(nwCtrl);
|
||||
this.tabControl.TabPages.Add(nwTab);
|
||||
/// Create a control for the water meters and add it to the list.
|
||||
IList<IComponent> other = new List<IComponent>();
|
||||
foreach (var cmpnt in TbfComponents)
|
||||
{
|
||||
if (cmpnt is TBF.BenchControl.Modbus.TankSelector.TankSelector) other.Add(cmpnt);
|
||||
}
|
||||
|
||||
if (other.Count > 0)
|
||||
{
|
||||
TabPage newTab = new TabPage(Strings.Other);
|
||||
ProcedureParamsCtrl newCtrl = new ProcedureParamsCtrl(this, other, false);
|
||||
procedureParamsCtrls.Add(newCtrl);
|
||||
newTab.Controls.Add(newCtrl);
|
||||
this.tabControl.TabPages.Add(newTab);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
9
TestBenchFramework/Resources/Strings.Designer.cs
generated
9
TestBenchFramework/Resources/Strings.Designer.cs
generated
@ -2346,6 +2346,15 @@ namespace TBF.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Other.
|
||||
/// </summary>
|
||||
internal static string Other {
|
||||
get {
|
||||
return ResourceManager.GetString("Other", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Output.
|
||||
/// </summary>
|
||||
|
||||
@ -1398,4 +1398,7 @@
|
||||
<data name="Procedure_name" xml:space="preserve">
|
||||
<value>Prüfvorlage</value>
|
||||
</data>
|
||||
<data name="Other" xml:space="preserve">
|
||||
<value><other></value>
|
||||
</data>
|
||||
</root>
|
||||
@ -1666,4 +1666,7 @@
|
||||
<data name="T_warm_heating" xml:space="preserve">
|
||||
<value>T warm heating</value>
|
||||
</data>
|
||||
<data name="Other" xml:space="preserve">
|
||||
<value>Other</value>
|
||||
</data>
|
||||
</root>
|
||||
Loading…
Reference in New Issue
Block a user