/// /// Copyright (c) 2023 Sensus Slovensko a.s. /// using System.Collections.Generic; using TBF.Rig.Generic; namespace TBF.Rig.DataEntry.Uni { public class FactoryNoStartEnd : IComponentFactory { public string ClassName { get { return GetType().Namespace.Substring(8) + "-NoStartEnd"; } } public IComponent DummyComponent() { return new EntryFormNoStartEnd(); } public IComponent GetComponent(IComponentCfg cfg, IList components) { return new EntryFormNoStartEnd(cfg); } public IComponentCfg DefaultConfig() { return new EntryFormCfg(this, GetType().Namespace.Substring(8) + "-NoStartEnd"); } public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component) { return ComponentCfgBase.CreateFromDbEntity(EntryFormCfg.Serializer, component, this); } } }