2015-04-15 18:32:56 +00:00
|
|
|
|
///
|
2016-06-10 10:37:34 +00:00
|
|
|
|
/// Copyright (c) 2013-2016 Sensus Metering Systems
|
2015-04-15 18:32:56 +00:00
|
|
|
|
///
|
|
|
|
|
|
using System;
|
2015-03-24 09:09:12 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.IO;
|
|
|
|
|
|
using System.Xml.Serialization;
|
|
|
|
|
|
using TBF.BenchControl.Generic;
|
|
|
|
|
|
|
2016-06-10 10:08:08 +00:00
|
|
|
|
namespace TBF.BenchControl.DataEntry.Standard6
|
2015-03-24 09:09:12 +00:00
|
|
|
|
{
|
|
|
|
|
|
public class EntryFormCfg : ComponentCfgBase, Generic.IComponentCfg
|
|
|
|
|
|
{
|
2017-06-21 21:39:34 +00:00
|
|
|
|
public static XmlSerializer Serializer = XmlSerializer.FromTypes(new[] { typeof(EntryFormCfg) })[0];
|
|
|
|
|
|
protected override XmlSerializer GetSerializer() { return Serializer; }
|
|
|
|
|
|
|
2015-03-24 09:09:12 +00:00
|
|
|
|
public IComponentCfgCtrl GetControl() { return new EntryFormCfgCtrl(); }
|
|
|
|
|
|
|
|
|
|
|
|
///
|
2015-04-28 14:32:21 +00:00
|
|
|
|
/// Serialized parameters
|
2015-03-24 09:09:12 +00:00
|
|
|
|
///
|
2016-05-04 13:42:28 +00:00
|
|
|
|
public bool EnterSerialNrsAtTheEnd;
|
2015-05-21 10:51:23 +00:00
|
|
|
|
public bool ShowCycleEndForm;
|
2016-06-10 10:37:34 +00:00
|
|
|
|
public bool SensusExtensions;
|
2015-03-24 09:09:12 +00:00
|
|
|
|
|
|
|
|
|
|
/// Private parameterless constructor invoked by all other (public) constructors
|
|
|
|
|
|
EntryFormCfg()
|
|
|
|
|
|
{
|
2015-03-26 16:19:54 +00:00
|
|
|
|
Name = "DataEntry-Standard";
|
2015-03-24 09:09:12 +00:00
|
|
|
|
ParentName = string.Empty;
|
2016-05-04 13:42:28 +00:00
|
|
|
|
EnterSerialNrsAtTheEnd = false;
|
2015-05-21 10:51:23 +00:00
|
|
|
|
ShowCycleEndForm = false;
|
2016-06-10 10:37:34 +00:00
|
|
|
|
SensusExtensions = false;
|
2015-03-24 09:09:12 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public EntryFormCfg(IComponentFactory factory)
|
|
|
|
|
|
: this()
|
|
|
|
|
|
{
|
|
|
|
|
|
this.Factory = factory;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public string ToString(int i)
|
|
|
|
|
|
{
|
2016-06-10 10:37:34 +00:00
|
|
|
|
return string.Format("Name={0}, EnterSNsAtTheEnd={1}, ShowEndForm={2}, SensusExt={3}", Name, EnterSerialNrsAtTheEnd, ShowCycleEndForm, SensusExtensions);
|
2015-03-24 09:09:12 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|