36 lines
826 B
C#
36 lines
826 B
C#
///
|
|
/// Copyright (c) 2017 Sensus Metering Systems
|
|
///
|
|
using TBF.BenchControl.Generic;
|
|
|
|
namespace TBF.BenchControl.Network.Camera.CLP1611
|
|
{
|
|
public class CameraCfg : ComponentCfgBase, IChildComponentCfg
|
|
{
|
|
public IComponentCfgCtrl GetControl() { return new CameraCfgCtrl(); }
|
|
|
|
///
|
|
/// Serialized parameters
|
|
///
|
|
public int HardwareAddress;
|
|
public bool DisplayTerminal;
|
|
|
|
/// Private parameterless constructor invoked by all other (public) constructors
|
|
CameraCfg() { }
|
|
|
|
public CameraCfg(string name, IComponentFactory factory)
|
|
: this()
|
|
{
|
|
Name = name;
|
|
Factory = factory;
|
|
ParentName = "Network.Adapter";
|
|
HardwareAddress = 1;
|
|
}
|
|
|
|
public string ToString(int i)
|
|
{
|
|
return string.Format("Name={0}, HWAddr={1}, Parent={2}", Name, HardwareAddress, ParentName);
|
|
}
|
|
}
|
|
}
|