/// /// Copyright (c) 2017 Sensus Metering Systems /// using System.Xml.Serialization; using Config.Entities; using TBF.BenchControl.Generic; namespace TBF.BenchControl.Network.Camera.Display { public class DisplayCfg : ComponentCfgBase, IComponentCfg { public static XmlSerializer Serializer = XmlSerializer.FromTypes(new[] { typeof(DisplayCfg) })[0]; protected override XmlSerializer GetSerializer() { return Serializer; } public IComponentCfgCtrl GetControl() { return new DisplayCfgCtrl(); } /// /// Serialized parameters /// /// Private parameterless constructor invoked by all other (public) constructors DisplayCfg() {} public DisplayCfg(string name, IComponentFactory factory) : this() { Name = name; Factory = factory; } public string ToString(int i) { return string.Format("Name={0}", Name); } } }