35 lines
749 B
C#
35 lines
749 B
C#
///
|
|
/// Copyright (c) 2017 Sensus Metering Systems
|
|
///
|
|
using TBF.BenchControl.Generic;
|
|
|
|
namespace TBF.BenchControl.Network.Camera.Roi
|
|
{
|
|
public class RoiCfg : ComponentCfgBase, IChildComponentCfg
|
|
{
|
|
public IComponentCfgCtrl GetControl() { return new RoiCfgCtrl(); }
|
|
|
|
///
|
|
/// Serialized parameters
|
|
///
|
|
public string Args;
|
|
|
|
/// Private parameterless constructor invoked by all other (public) constructors
|
|
RoiCfg() { }
|
|
|
|
public RoiCfg(string name, IComponentFactory factory)
|
|
: this()
|
|
{
|
|
Name = name;
|
|
Factory = factory;
|
|
ParentName = "Camera";
|
|
Args = string.Empty;
|
|
}
|
|
|
|
public string ToString(int i)
|
|
{
|
|
return string.Format("Name={0}, Parent={1}, Args={2}", Name, ParentName, Args);
|
|
}
|
|
}
|
|
}
|