/// /// Copyright (c) 2013-2015 Sensus Metering Systems /// using System; using System.Collections.Generic; using System.IO; using System.Xml.Serialization; using TBF.BenchControl.Generic; namespace TBF.BenchControl.DataEntry.Standard6 { public class EntryFormCfg : ComponentCfgBase, Generic.IComponentCfg { public IComponent GetComponent(IList components) { return new EntryForm(this); } public IComponentCfgCtrl GetControl() { return new EntryFormCfgCtrl(); } /// /// Serialized parameters /// public bool EnterSerialNrsAtTheEnd; public bool ShowCycleEndForm; /// Private parameterless constructor invoked by all other (public) constructors EntryFormCfg() { Name = "DataEntry-Standard"; ParentName = string.Empty; EnterSerialNrsAtTheEnd = false; ShowCycleEndForm = false; } public EntryFormCfg(IComponentFactory factory) : this() { this.Factory = factory; } public string ToString(int i) { return string.Format("Name={0}, EnterSNsAtTheEnd={1}, ShowEndForm={2}", Name, EnterSerialNrsAtTheEnd, ShowCycleEndForm); } } }