tbf/TestBenchFramework/BenchControl/Elde/PumpWithFM/PumpFactory.cs

19 lines
504 B
C#

using TBF.BenchControl.Generic;
namespace TBF.BenchControl.Elde.PumpWithFM
{
public class PumpFactory : IComponentFactory
{
public string ClassName { get { return "PumpWithFM"; } }
public void ResetStaticProperties() { Pump.ResetStaticProperties(); }
public IComponentCfg DefaultConfig() { return new PumpCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
{
return ComponentCfgBase.CreateFromDbEntity(typeof(PumpCfg), component, this);
}
}
}