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
|
|
|
|
///
|
2021-08-29 11:01:34 +00:00
|
|
|
|
using System.Collections.Generic;
|
2014-07-28 07:54:35 +00:00
|
|
|
|
using TBF.BenchControl.Generic;
|
2017-06-21 21:39:34 +00:00
|
|
|
|
using System.Xml.Serialization;
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
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
|
|
|
|
|
|
{
|
2017-06-21 21:39:34 +00:00
|
|
|
|
public static XmlSerializer Serializer = XmlSerializer.FromTypes(new[] { typeof(TestMethodCfg) })[0];
|
2018-06-18 10:44:37 +00:00
|
|
|
|
public override XmlSerializer GetSerializer() { return Serializer; }
|
2017-06-21 21:39:34 +00:00
|
|
|
|
|
2021-08-29 11:01:34 +00:00
|
|
|
|
public IComponentCfgCtrl GetControl(IList<Config.Entities.Component> cmpntEntities) { return new TestMethodCfgCtrl(); }
|
2015-01-02 18:14:19 +00:00
|
|
|
|
|
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
|
|
|
|
}
|