tbf/TestBenchFramework/BenchControl/HeatMetersPath.cs
Milan Hanajik 0ac1fe2b4e HeatMetersPath, UI, etc., HEAT_METERS_SUPPORT symbol introduced
ProcedureDlg modifications: (1) localization by TBF.Resources.Strings, (2) Heat meters support
FlyingStartMassCollection and CombinedMeters methods with similar sequences
2016-07-06 15:59:28 +02:00

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);
}
}
}