35 lines
893 B
C#
35 lines
893 B
C#
using System;
|
|
using System.IO;
|
|
using System.Xml.Serialization;
|
|
using TBF.BenchControl.Generic;
|
|
|
|
namespace TBF.BenchControl.Elde.RegisterReader
|
|
{
|
|
public class RegisterReaderCfg : ComponentCfgBase, Generic.IChildComponentCfg
|
|
{
|
|
public int Position; /// 1..nrWaterMeters
|
|
|
|
/// Parameterless constructor
|
|
public RegisterReaderCfg()
|
|
{
|
|
Name = "Sick";
|
|
ParentName = "CB";
|
|
Position = 1;
|
|
}
|
|
|
|
public RegisterReaderCfg(IComponentFactory factory)
|
|
: this()
|
|
{
|
|
this.Factory = factory;
|
|
}
|
|
|
|
public string ToString(int i)
|
|
{
|
|
return string.Format("Name={0}, Parent={1}, Position={2}",
|
|
Name,
|
|
(string.IsNullOrEmpty(ParentName) ? "-" : ParentName),
|
|
Position);
|
|
}
|
|
}
|
|
}
|