tbf/TestBenchFramework/BenchControl/DataEntry/Standard24/Factory.cs

27 lines
835 B
C#
Raw Normal View History

2015-05-19 16:46:36 +00:00
///
/// Copyright (c) 2015-2017 Sensus Metering Systems
2015-05-19 16:46:36 +00:00
///
using System.Collections.Generic;
2015-05-19 16:46:36 +00:00
using TBF.BenchControl.Generic;
namespace TBF.BenchControl.DataEntry.Standard24
{
public class Factory : IComponentFactory
2015-05-19 16:46:36 +00:00
{
public string ClassName { get { return "DataEntry-Standard-24"; } }
public void ResetStaticProperties() { EntryFormNoStartEnd.ResetStaticProperties(); }
2015-05-19 16:46:36 +00:00
public IComponent DummyComponent() { return new EntryFormNoStartEnd(); }
public IComponent GetComponent(IComponentCfg cfg, IList<IComponent> components) { return new EntryForm(cfg); }
2015-05-19 16:46:36 +00:00
public IComponentCfg DefaultConfig() { return new EntryFormCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
2015-05-19 16:46:36 +00:00
{
return ComponentCfgBase.CreateFromDbEntity(EntryFormCfg.Serializer, component, this);
2015-05-19 16:46:36 +00:00
}
}
}