(1) UI.Procedures.ProcedureParamsMixedCtrl, (2) Modbus.Novus added, (3) cleanup

This commit is contained in:
Milan Hanajik
2021-03-29 18:25:51 +02:00
parent 6be8af6d63
commit 1a8ef4f1be
24 changed files with 1477 additions and 33 deletions
+27
View File
@@ -0,0 +1,27 @@
///
/// Copyright (c) 2021 Sensus Slovensko a.s.
///
using System.Collections.Generic;
using TBF.Rig.Generic;
namespace TBF.Rig.Modbus.Novus
{
public class Factory : IComponentFactory
{
public string ClassName { get { return GetType().Namespace.Substring(8); } }
public override string ToString() { return ClassName; }
public void ResetStaticProperties() { Novus.ResetStaticProperties(); }
public IComponent DummyComponent() { return new Novus(); }
public IComponent GetComponent(IComponentCfg cfg, IList<IComponent> components) { return new Novus(cfg, components); }
public IComponentCfg DefaultConfig() { return new NovusCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
{
return ComponentCfgBase.CreateFromDbEntity(NovusCfg.Serializer, component, this);
}
}
}