37 lines
916 B
C#
37 lines
916 B
C#
///
|
|
/// Copyright (c) 2017 Sensus Metering Systems
|
|
///
|
|
using TBF.BenchControl.Generic;
|
|
|
|
namespace TBF.BenchControl.Network.Adapter
|
|
{
|
|
public class NetadapterCfg : ComponentCfgBase, Generic.IComponentCfg
|
|
{
|
|
public IComponentCfgCtrl GetControl() { return new NetadapterCfgCtrl(); }
|
|
|
|
|
|
public string Description; /// Description string of the selected network adapter
|
|
public bool TftpServerEnabled;
|
|
public string TftpServerDirectory;
|
|
|
|
|
|
/// Private parameterless constructor invoked by all other (public) constructors
|
|
NetadapterCfg() {}
|
|
|
|
public NetadapterCfg(string name, IComponentFactory factory)
|
|
: this()
|
|
{
|
|
Name = name;
|
|
Factory = factory;
|
|
ParentName = string.Empty;
|
|
TftpServerEnabled = true;
|
|
TftpServerDirectory = "C:\\TBF\\TftpRoot";
|
|
}
|
|
|
|
public string ToString(int i)
|
|
{
|
|
return string.Format("Name={0}, Description={1}", Name, Description);
|
|
}
|
|
}
|
|
}
|