Boilerplate code reduced from factories, GetComponent() and GetControl() added to cfg-s

This commit is contained in:
Milan Hanajik
2015-01-02 19:14:19 +01:00
parent 94de991bf6
commit f2005bbf56
70 changed files with 367 additions and 708 deletions
@@ -1,4 +1,5 @@
using System.IO;
using System.Collections.Generic;
using System.Xml.Serialization;
using TBF.BenchControl.Generic;
@@ -6,6 +7,12 @@ namespace TBF.BenchControl.Elde.Diverter
{
public class DiverterCfg : ComponentCfgBase, IChildComponentCfg
{
public IComponent GetComponent(IList<IComponent> components) { return new Diverter(this, components); }
public IComponentCfgCtrl GetControl() { return new DiverterCfgCtrl(); }
///
/// Serialized parameters
///
public int BitPosition;
/// Private parameterless constructor invoked by all other (public) constructors