2015-08-24 06:01:41 +00:00
|
|
|
|
///
|
2021-03-08 11:54:17 +00:00
|
|
|
|
/// Copyright (c) 2015-2021 Sensus Slovensko a.s.
|
2015-08-24 06:01:41 +00:00
|
|
|
|
///
|
|
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.IO;
|
|
|
|
|
|
using System.Xml.Serialization;
|
|
|
|
|
|
using TBF.BenchControl.Generic;
|
|
|
|
|
|
|
|
|
|
|
|
namespace TBF.BenchControl.DataEntry.iPerl
|
|
|
|
|
|
{
|
|
|
|
|
|
public class EntryFormCfg : ComponentCfgBase, Generic.IComponentCfg
|
|
|
|
|
|
{
|
2017-06-21 21:39:34 +00:00
|
|
|
|
public static XmlSerializer Serializer = XmlSerializer.FromTypes(new[] { typeof(EntryFormCfg) })[0];
|
2018-06-18 10:44:37 +00:00
|
|
|
|
public override XmlSerializer GetSerializer() { return Serializer; }
|
2017-06-21 21:39:34 +00:00
|
|
|
|
|
2015-08-24 06:01:41 +00:00
|
|
|
|
public IComponentCfgCtrl GetControl() { return new EntryFormCfgCtrl(); }
|
|
|
|
|
|
|
|
|
|
|
|
///
|
|
|
|
|
|
/// Serialized parameters
|
|
|
|
|
|
///
|
2018-11-15 11:39:29 +00:00
|
|
|
|
public bool ReversedDirection;
|
2015-08-24 06:01:41 +00:00
|
|
|
|
|
|
|
|
|
|
/// Private parameterless constructor invoked by all other (public) constructors
|
|
|
|
|
|
EntryFormCfg()
|
|
|
|
|
|
{
|
2015-08-24 07:33:13 +00:00
|
|
|
|
Name = "DataEntry-iPerl";
|
2015-08-24 06:01:41 +00:00
|
|
|
|
ParentName = string.Empty;
|
2018-11-15 11:39:29 +00:00
|
|
|
|
ReversedDirection = false;
|
2015-08-24 06:01:41 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public EntryFormCfg(IComponentFactory factory)
|
|
|
|
|
|
: this()
|
|
|
|
|
|
{
|
|
|
|
|
|
this.Factory = factory;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public string ToString(int i)
|
|
|
|
|
|
{
|
2021-03-08 11:54:17 +00:00
|
|
|
|
return string.Format("Name={0}, ReversedDir={1}", Name, ReversedDirection);
|
2015-08-24 06:01:41 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|