56 lines
1.6 KiB
C#
56 lines
1.6 KiB
C#
///
|
|
/// Copyright (c) 2017 Sensus Metering Systems
|
|
///
|
|
using System;
|
|
using System.Xml.Serialization;
|
|
using TBF.BenchControl.Generic;
|
|
|
|
namespace TBF.BenchControl.DataEntry.StandardCamera
|
|
{
|
|
public class EntryFormCfg : ComponentCfgBase, Generic.IComponentCfg
|
|
{
|
|
public static XmlSerializer Serializer = XmlSerializer.FromTypes(new[] { typeof(EntryFormCfg) })[0];
|
|
protected override XmlSerializer GetSerializer() { return Serializer; }
|
|
|
|
public IComponentCfgCtrl GetControl() { return new EntryFormCfgCtrl(); }
|
|
|
|
///
|
|
/// Serialized parameters
|
|
///
|
|
public bool HideOrder;
|
|
public bool EnterSerialNrsAtTheEnd;
|
|
public bool ShowCycleEndForm;
|
|
public bool SaveImages;
|
|
public string ProtocolTitle1;
|
|
public string ProtocolTitle2;
|
|
public string ProtocolTitle3;
|
|
public string ProtocolTitle4;
|
|
|
|
/// Private parameterless constructor invoked by all other (public) constructors
|
|
EntryFormCfg()
|
|
{
|
|
Name = "DataEntry-for-Camera";
|
|
ParentName = string.Empty;
|
|
HideOrder = false;
|
|
EnterSerialNrsAtTheEnd = false;
|
|
ShowCycleEndForm = false;
|
|
SaveImages = false;
|
|
ProtocolTitle1 = string.Empty;
|
|
ProtocolTitle2 = string.Empty;
|
|
ProtocolTitle3 = string.Empty;
|
|
ProtocolTitle4 = string.Empty;
|
|
}
|
|
|
|
public EntryFormCfg(IComponentFactory factory)
|
|
: this()
|
|
{
|
|
this.Factory = factory;
|
|
}
|
|
|
|
public string ToString(int i)
|
|
{
|
|
return string.Format("Name={0}, HideOrder={1} SNsAtTheEnd={2}, EndForm={3}, SaveImages={4}", Name, HideOrder, EnterSerialNrsAtTheEnd, ShowCycleEndForm, SaveImages);
|
|
}
|
|
}
|
|
}
|