tbf/TestBenchFramework/BenchControl/Network/Adapter/NetadapterCfg.cs

35 lines
841 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;
}
public string ToString(int i)
{
return string.Format("Name={0}, Description={1}", Name, Description);
}
}
}