2015-04-15 18:32:56 +00:00
|
|
|
|
///
|
2016-08-05 12:32:36 +00:00
|
|
|
|
/// Copyright (c) 2013-2016 Sensus Metering Systems
|
2015-04-15 18:32:56 +00:00
|
|
|
|
///
|
2016-08-05 12:32:36 +00:00
|
|
|
|
using System.Collections.Generic;
|
2015-04-15 18:32:56 +00:00
|
|
|
|
using TBF.BenchControl.Generic;
|
2014-09-16 14:09:07 +00:00
|
|
|
|
|
|
|
|
|
|
namespace TBF.BenchControl.DataEntry.WMStates
|
|
|
|
|
|
{
|
|
|
|
|
|
public class EntryFormFactory : IComponentFactory
|
|
|
|
|
|
{
|
|
|
|
|
|
public string ClassName { get { return "Generic-WM-States-Form"; } }
|
|
|
|
|
|
|
2015-01-02 18:14:19 +00:00
|
|
|
|
public void ResetStaticProperties() { EntryForm.ResetStaticProperties(); }
|
2014-09-16 14:09:07 +00:00
|
|
|
|
|
2015-06-29 09:14:33 +00:00
|
|
|
|
public IComponent DummyComponent() { return new EntryForm(); }
|
|
|
|
|
|
|
2016-08-05 12:32:36 +00:00
|
|
|
|
public IComponent GetComponent(IComponentCfg cfg, IList<IComponent> components) { return new EntryForm(cfg); }
|
|
|
|
|
|
|
2015-01-02 18:14:19 +00:00
|
|
|
|
public IComponentCfg DefaultConfig() { return new EntryFormCfg(this); }
|
2014-09-16 14:09:07 +00:00
|
|
|
|
|
2015-12-04 16:17:20 +00:00
|
|
|
|
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
|
2014-09-16 14:09:07 +00:00
|
|
|
|
{
|
2014-12-29 15:00:27 +00:00
|
|
|
|
return ComponentCfgBase.CreateFromDbEntity(typeof(EntryFormCfg), component, this);
|
2014-09-16 14:09:07 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|