TBF.BenchControl... --> TBF.Rig...
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
///
|
||||
/// Copyright (c) 2013-2016 Sensus Metering Systems
|
||||
///
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Xml.Serialization;
|
||||
using TBF.Rig.Generic;
|
||||
|
||||
namespace TBF.Rig.DataEntry.Munich
|
||||
{
|
||||
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 string ProtocolTitle1;
|
||||
public string ProtocolTitle2;
|
||||
public string ProtocolTitle3;
|
||||
public string ProtocolTitle4;
|
||||
|
||||
/// Private parameterless constructor invoked by all other (public) constructors
|
||||
EntryFormCfg()
|
||||
{
|
||||
Name = "DataEntryForm-Munich";
|
||||
ParentName = string.Empty;
|
||||
ProtocolTitle1 = "Protokoll 1";
|
||||
ProtocolTitle2 = "Protokoll 2";
|
||||
ProtocolTitle3 = "Protokoll 3";
|
||||
ProtocolTitle4 = "Protokoll 4";
|
||||
}
|
||||
|
||||
public EntryFormCfg(IComponentFactory factory)
|
||||
: this()
|
||||
{
|
||||
this.Factory = factory;
|
||||
}
|
||||
|
||||
public string ToString(int i)
|
||||
{
|
||||
return string.Format("Name={0}, P1={1}, P2={2}, P3={3}, P4={4}",
|
||||
Name,
|
||||
(string.IsNullOrEmpty(ProtocolTitle1) ? "-" : ProtocolTitle1),
|
||||
(string.IsNullOrEmpty(ProtocolTitle2) ? "-" : ProtocolTitle2),
|
||||
(string.IsNullOrEmpty(ProtocolTitle3) ? "-" : ProtocolTitle3),
|
||||
(string.IsNullOrEmpty(ProtocolTitle4) ? "-" : ProtocolTitle4));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user