/// /// Copyright (c) 2021 Sensus Slovensko a.s. /// using System.Collections.Generic; using TBF.Resources; using TBF.Rig.Generic; namespace TBF.Rig.Various.EmergencyStop { public class Factory : IComponentFactory { public string ClassName { get { return this.GetType().Namespace.Substring(8); } } public override string ToString() { return ClassName; } public IComponent DummyComponent() { return new Component(); } public IComponent GetComponent(IComponentCfg cfg, IList components) { return new Component(cfg); } public IComponentCfg DefaultConfig() { return new Configuration(Strings.Emergency_STOP, this); } public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component) { return ComponentCfgBase.CreateFromDbEntity(Configuration.Serializer, component, this); } } }