2015-04-15 18:32:56 +00:00
|
|
|
|
///
|
|
|
|
|
|
/// Copyright (c) 2013-2015 Sensus Metering Systems
|
|
|
|
|
|
///
|
|
|
|
|
|
using System;
|
2015-01-02 18:14:19 +00:00
|
|
|
|
using System.Collections.Generic;
|
2014-07-28 20:13:30 +00:00
|
|
|
|
using System.IO;
|
|
|
|
|
|
using System.Xml.Serialization;
|
|
|
|
|
|
using TBF.BenchControl.Generic;
|
|
|
|
|
|
|
|
|
|
|
|
namespace TBF.BenchControl.DataEntry.Munich3
|
|
|
|
|
|
{
|
|
|
|
|
|
public class EntryFormCfg : ComponentCfgBase, Generic.IComponentCfg
|
|
|
|
|
|
{
|
2015-01-02 18:14:19 +00:00
|
|
|
|
public IComponent GetComponent(IList<IComponent> components) { return new EntryForm(this); }
|
|
|
|
|
|
public IComponentCfgCtrl GetControl() { return new EntryFormCfgCtrl(); }
|
|
|
|
|
|
|
|
|
|
|
|
///
|
|
|
|
|
|
/// Serialized parameters
|
|
|
|
|
|
///
|
2014-07-28 20:13:30 +00:00
|
|
|
|
public string ProtocolTitle1;
|
|
|
|
|
|
public string ProtocolTitle2;
|
|
|
|
|
|
public string ProtocolTitle3;
|
|
|
|
|
|
|
2014-12-31 12:46:33 +00:00
|
|
|
|
/// Private parameterless constructor invoked by all other (public) constructors
|
|
|
|
|
|
EntryFormCfg()
|
2014-07-28 20:13:30 +00:00
|
|
|
|
{
|
2014-12-29 15:00:27 +00:00
|
|
|
|
Name = "DataEntryForm-3";
|
|
|
|
|
|
ParentName = string.Empty;
|
|
|
|
|
|
ProtocolTitle1 = "Protokoll Werkprüfung";
|
|
|
|
|
|
ProtocolTitle2 = "Protokoll 2";
|
|
|
|
|
|
ProtocolTitle3 = "Protokoll 3";
|
|
|
|
|
|
}
|
2014-07-28 20:13:30 +00:00
|
|
|
|
|
2014-12-29 15:00:27 +00:00
|
|
|
|
public EntryFormCfg(IComponentFactory factory)
|
|
|
|
|
|
: this()
|
|
|
|
|
|
{
|
|
|
|
|
|
this.Factory = factory;
|
|
|
|
|
|
}
|
2014-07-28 20:13:30 +00:00
|
|
|
|
|
2014-12-29 15:00:27 +00:00
|
|
|
|
public string ToString(int i)
|
|
|
|
|
|
{
|
2014-12-31 12:46:33 +00:00
|
|
|
|
return string.Format("Name={0}, Protocol1={1}, Protocol2={2}, Protocol3={3}",
|
2014-12-29 15:00:27 +00:00
|
|
|
|
Name,
|
|
|
|
|
|
(string.IsNullOrEmpty(ProtocolTitle1) ? "-" : ProtocolTitle1),
|
|
|
|
|
|
(string.IsNullOrEmpty(ProtocolTitle2) ? "-" : ProtocolTitle2),
|
|
|
|
|
|
(string.IsNullOrEmpty(ProtocolTitle3) ? "-" : ProtocolTitle3));
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2014-07-28 20:13:30 +00:00
|
|
|
|
}
|