/// /// Copyright (c) 2017 Sensus Metering Systems /// using System.Xml.Serialization; using TBF.BenchControl.Generic; namespace TBF.BenchControl.Network.Adapter { public class NetadapterCfg : ComponentCfgBase, Generic.IComponentCfg { public static XmlSerializer Serializer = XmlSerializer.FromTypes(new[] { typeof(NetadapterCfg) })[0]; protected override XmlSerializer GetSerializer() { return Serializer; } 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); } } }