2014-07-28 07:54:35 +00:00
|
|
|
|
using System.IO;
|
2015-01-02 18:14:19 +00:00
|
|
|
|
using System.Collections.Generic;
|
2014-07-28 07:54:35 +00:00
|
|
|
|
using System.Xml.Serialization;
|
|
|
|
|
|
using TBF.BenchControl.Generic;
|
|
|
|
|
|
|
|
|
|
|
|
namespace TBF.BenchControl.Elde
|
|
|
|
|
|
{
|
|
|
|
|
|
public class ControlBoardCfg : ComponentCfgBase, IComponentCfg
|
|
|
|
|
|
{
|
2015-01-02 18:14:19 +00:00
|
|
|
|
public IComponent GetComponent(IList<IComponent> components) { return new ControlBoardDev(this); }
|
|
|
|
|
|
public IComponentCfgCtrl GetControl() { return new ControlBoardCfgCtrl(); }
|
|
|
|
|
|
|
|
|
|
|
|
///
|
|
|
|
|
|
/// Serialized parameters
|
|
|
|
|
|
///
|
2014-07-28 07:54:35 +00:00
|
|
|
|
public int ComPortNr;
|
|
|
|
|
|
|
2014-12-31 12:46:33 +00:00
|
|
|
|
/// Private parameterless constructor invoked by all other (public) constructors
|
|
|
|
|
|
ControlBoardCfg()
|
2014-07-28 07:54:35 +00:00
|
|
|
|
{
|
2014-12-29 15:00:27 +00:00
|
|
|
|
Name = "CB";
|
|
|
|
|
|
ParentName = string.Empty;
|
|
|
|
|
|
ComPortNr = 1;
|
2014-07-28 07:54:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2014-12-29 15:00:27 +00:00
|
|
|
|
public ControlBoardCfg(IComponentFactory factory)
|
|
|
|
|
|
: this()
|
|
|
|
|
|
{
|
|
|
|
|
|
this.Factory = factory;
|
|
|
|
|
|
}
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
2014-12-29 15:00:27 +00:00
|
|
|
|
public string ToString(int i)
|
|
|
|
|
|
{
|
2014-12-31 12:46:33 +00:00
|
|
|
|
return string.Format("Name={0}, Com{1}", Name, ComPortNr);
|
2014-07-28 07:54:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|