31 lines
644 B
C#
31 lines
644 B
C#
using System.IO;
|
|
using System.Xml.Serialization;
|
|
using TBF.BenchControl.Generic;
|
|
|
|
namespace TBF.BenchControl.Elde
|
|
{
|
|
public class ControlBoardCfg : ComponentCfgBase, IComponentCfg
|
|
{
|
|
public int ComPortNr;
|
|
|
|
/// Parameterless constructor
|
|
public ControlBoardCfg()
|
|
{
|
|
Name = "CB";
|
|
ParentName = string.Empty;
|
|
ComPortNr = 1;
|
|
}
|
|
|
|
public ControlBoardCfg(IComponentFactory factory)
|
|
: this()
|
|
{
|
|
this.Factory = factory;
|
|
}
|
|
|
|
public string ToString(int i)
|
|
{
|
|
return string.Format("Name={0}, ComPortNr={1}", Name, ComPortNr);
|
|
}
|
|
}
|
|
}
|