using System; using System.Xml.Serialization; using TBF.BenchControl.Generic; namespace TBF.BenchControl.BenchId { /// /// Holds information identifying the test bench - serializable configuration. /// public class ComponentCfg : ComponentCfgBase, Generic.IComponentCfg { public int TestBenchNr; /// Parameterless constructor, sets default values public ComponentCfg() { Name = "Bench-ID"; ParentName = string.Empty; TestBenchNr = 1; } public ComponentCfg(IComponentFactory factory) : this() { this.Factory = factory; } public string ToString(int i) { return string.Format("Name={0}, TestBenchNr={1}", Name, TestBenchNr); } } }