tbf/TestBenchFramework/BenchControl/ResultsPrinters/LabelPrinter/PrinterFactory.cs
2015-12-08 23:44:52 +01:00

24 lines
657 B
C#

///
/// Copyright (c) 2015 Sensus Metering Systems
///
using TBF.BenchControl.Generic;
namespace TBF.BenchControl.ResultsPrinters.LabelPrinter
{
public class PrinterFactory : IComponentFactory
{
public string ClassName { get { return "LabelPrinter"; } }
public void ResetStaticProperties() { Printer.ResetStaticProperties(); }
public IComponent DummyComponent() { return new Printer(); }
public IComponentCfg DefaultConfig() { return new PrinterCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
{
return ComponentCfgBase.CreateFromDbEntity(typeof(PrinterCfg), component, this);
}
}
}