ProcedureDlg modifications: (1) localization by TBF.Resources.Strings, (2) Heat meters support FlyingStartMassCollection and CombinedMeters methods with similar sequences
37 lines
938 B
C#
37 lines
938 B
C#
///
|
|
/// Copyright (c) 2016 Sensus Metering Systems
|
|
///
|
|
using System.Collections.Generic;
|
|
using TBF.BenchControl.GenericDevices;
|
|
|
|
namespace TBF.BenchControl
|
|
{
|
|
public class HeatMetersPath
|
|
{
|
|
public int ItemNr;
|
|
public string Name;
|
|
public ITempMeter TempWarm;
|
|
public ITempMeter TempCold;
|
|
|
|
/// Constructor from name, the rest is empty
|
|
public HeatMetersPath(string name, int itemNr)
|
|
{
|
|
ItemNr = itemNr;
|
|
Name = name;
|
|
}
|
|
|
|
/// Constructor from data entity
|
|
public HeatMetersPath(Config.Entities.HeatMetersPath entity, IList<BenchControl.Generic.IComponent> components)
|
|
: this(entity.Name, entity.ItemNr)
|
|
{
|
|
TempWarm = TbfComponents.FindComponent(entity.TempWarm, components) as ITempMeter;
|
|
TempCold = TbfComponents.FindComponent(entity.TempCold, components) as ITempMeter;
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return string.Format("{0}", Name);
|
|
}
|
|
}
|
|
}
|