Boilerplate code reduced from factories, GetComponent() and GetControl() added to cfg-s
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.IO;
|
||||
using System.Collections.Generic;
|
||||
using System.IO.Ports;
|
||||
using System.Xml.Serialization;
|
||||
using TBF.BenchControl.Generic;
|
||||
@@ -7,6 +8,12 @@ namespace TBF.BenchControl.Cameras.IdcCamera
|
||||
{
|
||||
public class IdcCameraCfg : ComponentCfgBase, Generic.IComponentCfg
|
||||
{
|
||||
public IComponent GetComponent(IList<IComponent> components) { return new IdcCamera(this, components); }
|
||||
public IComponentCfgCtrl GetControl() { return new IdcCameraCfgCtrl(); }
|
||||
|
||||
///
|
||||
/// Serialized parameters
|
||||
///
|
||||
public int ComPortNr; /// Com port number 1..999
|
||||
public int BaudRate; /// Baud rate 57600 or 115200
|
||||
public float BrightnessCam; /// Relative brightness 0 .. 1.0f
|
||||
|
||||
Reference in New Issue
Block a user