2014-07-28 07:54:35 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.IO;
|
|
|
|
|
|
using System.Xml.Serialization;
|
|
|
|
|
|
using TBF.BenchControl.Generic;
|
|
|
|
|
|
using TBF.Resources;
|
|
|
|
|
|
|
|
|
|
|
|
namespace TBF.BenchControl.WaterMeter
|
|
|
|
|
|
{
|
|
|
|
|
|
public class WaterMeterCfg : ComponentCfgBase, Generic.IComponentCfg
|
|
|
|
|
|
{
|
2014-12-31 12:46:33 +00:00
|
|
|
|
/// <summary> Procedure parameters </summary>
|
|
|
|
|
|
[XmlIgnore]
|
|
|
|
|
|
public ProcParams ProcParams;
|
|
|
|
|
|
public override IParamsProvider GetProcedureParams() { return ProcParams; }
|
|
|
|
|
|
public override IParamsProvider CreateProcedureParams(Entities.Procedure procedure)
|
|
|
|
|
|
{
|
|
|
|
|
|
ProcParams procParams = new ProcParams();
|
|
|
|
|
|
procParams.UpdateProcedureParams(Name, procedure);
|
|
|
|
|
|
return procParams;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// Private parameterless constructor invoked by all other (public) constructors
|
|
|
|
|
|
WaterMeterCfg()
|
2014-07-28 07:54:35 +00:00
|
|
|
|
{
|
2014-12-29 15:00:27 +00:00
|
|
|
|
Name = "WaterMeter";
|
|
|
|
|
|
ParentName = string.Empty;
|
2014-12-31 12:46:33 +00:00
|
|
|
|
ProcParams = new ProcParams();
|
|
|
|
|
|
}
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
2014-12-29 15:00:27 +00:00
|
|
|
|
public WaterMeterCfg(IComponentFactory factory)
|
|
|
|
|
|
: this()
|
2014-07-28 07:54:35 +00:00
|
|
|
|
{
|
2014-12-29 15:00:27 +00:00
|
|
|
|
this.Factory = factory;
|
|
|
|
|
|
}
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
|
|
|
|
|
public string ToString(int i)
|
|
|
|
|
|
{
|
2014-12-29 15:00:27 +00:00
|
|
|
|
return string.Format("Name={0}", Name);
|
2014-07-28 07:54:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|