2015-04-15 18:32:56 +00:00
|
|
|
|
///
|
2016-08-15 08:13:08 +00:00
|
|
|
|
/// Copyright (c) 2016 Sensus Metering Systems
|
2015-04-15 18:32:56 +00:00
|
|
|
|
///
|
2014-07-28 07:54:35 +00:00
|
|
|
|
using TBF.BenchControl.Generic;
|
|
|
|
|
|
|
2016-08-15 08:13:08 +00:00
|
|
|
|
namespace TBF.BenchControl.Configs.NameOnly
|
2014-07-28 07:54:35 +00:00
|
|
|
|
{
|
|
|
|
|
|
public class TestMethodCfg : ComponentCfgBase, Generic.IComponentCfg
|
|
|
|
|
|
{
|
2015-01-02 18:14:19 +00:00
|
|
|
|
public IComponentCfgCtrl GetControl() { return new TestMethodCfgCtrl(); }
|
|
|
|
|
|
|
2014-12-31 12:46:33 +00:00
|
|
|
|
/// Private parameterless constructor invoked by all other (public) constructors
|
2016-08-05 12:32:36 +00:00
|
|
|
|
TestMethodCfg() { }
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
2016-08-05 12:32:36 +00:00
|
|
|
|
public TestMethodCfg(string name, IComponentFactory factory)
|
2014-12-29 15:00:27 +00:00
|
|
|
|
: this()
|
|
|
|
|
|
{
|
2016-08-05 12:32:36 +00:00
|
|
|
|
Name = name;
|
|
|
|
|
|
Factory = factory;
|
|
|
|
|
|
ParentName = string.Empty;
|
|
|
|
|
|
}
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
2014-12-29 15:00:27 +00:00
|
|
|
|
public string ToString(int i)
|
|
|
|
|
|
{
|
|
|
|
|
|
return string.Format("Name={0}", Name);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2014-07-28 07:54:35 +00:00
|
|
|
|
}
|