43 lines
1.0 KiB
C#
43 lines
1.0 KiB
C#
///
|
|
/// Copyright (c) 2017 Sensus Metering Systems
|
|
///
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Xml.Serialization;
|
|
using TBF.BenchControl.Generic;
|
|
|
|
namespace TBF.BenchControl.Modbus.QuidoRS.TankSelector
|
|
{
|
|
public class TankSelectorCfg : ComponentCfgBase, Generic.IChildComponentCfg
|
|
{
|
|
public IComponentCfgCtrl GetControl() { return new TankSelectorCfgCtrl(); }
|
|
|
|
///
|
|
/// Serialized parameters
|
|
///
|
|
public string ControlBoard;
|
|
|
|
/// Private parameterless constructor invoked by all other (public) constructors
|
|
TankSelectorCfg()
|
|
{
|
|
Name = "TankSelector";
|
|
ParentName = "QuidoRS";
|
|
}
|
|
|
|
public TankSelectorCfg(IComponentFactory factory)
|
|
: this()
|
|
{
|
|
this.Factory = factory;
|
|
}
|
|
|
|
public string ToString(int i)
|
|
{
|
|
return string.Format("Name={0}, Parent={1}, CtrlBrd={2}",
|
|
Name,
|
|
(string.IsNullOrEmpty(ParentName) ? "-" : ParentName),
|
|
(string.IsNullOrEmpty(ControlBoard) ? "-" : ControlBoard));
|
|
}
|
|
}
|
|
}
|