51 lines
1.5 KiB
C#
51 lines
1.5 KiB
C#
///
|
|
/// Copyright (c) 2013-2018 Sensus Slovensko a.s.
|
|
///
|
|
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 static XmlSerializer Serializer = XmlSerializer.FromTypes(new[] { typeof(EntryFormCfg) })[0];
|
|
public override XmlSerializer GetSerializer() { return Serializer; }
|
|
|
|
public IComponentCfgCtrl GetControl(IList<Config.Entities.Component> cmpntEntities) { return new EntryFormCfgCtrl(); }
|
|
|
|
///
|
|
/// Serialized parameters
|
|
///
|
|
public bool EnterSerialNrsAtTheEnd;
|
|
public bool ShowCycleEndForm;
|
|
public bool RemarkEnabled;
|
|
public bool SensusExtensions;
|
|
|
|
/// Private parameterless constructor invoked by all other (public) constructors
|
|
EntryFormCfg()
|
|
{
|
|
Name = "DataEntry-Standard";
|
|
ParentName = string.Empty;
|
|
EnterSerialNrsAtTheEnd = false;
|
|
ShowCycleEndForm = false;
|
|
RemarkEnabled = false;
|
|
SensusExtensions = false;
|
|
}
|
|
|
|
public EntryFormCfg(IComponentFactory factory)
|
|
: this()
|
|
{
|
|
this.Factory = factory;
|
|
}
|
|
|
|
public string ToString(int i)
|
|
{
|
|
return string.Format("Name={0}, EnterSNsAtTheEnd={1}, ShowEndForm={2}, Remark={3}, SensusExt={4}",
|
|
Name, EnterSerialNrsAtTheEnd, ShowCycleEndForm, RemarkEnabled, SensusExtensions);
|
|
}
|
|
}
|
|
}
|