Refactorization : BenchControl -> Rig
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
///
|
||||
/// Copyright (c) 2019 Sensus Slovensko a.s.
|
||||
///
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Xml.Serialization;
|
||||
using TBF.Rig.Generic;
|
||||
using TBF.Rig.Output;
|
||||
|
||||
namespace TBF.Rig.TestMethods.ManualEntry
|
||||
{
|
||||
|
||||
public class ManualEntryCfg : ComponentCfgBase, Generic.IComponentCfg
|
||||
{
|
||||
public static XmlSerializer Serializer = XmlSerializer.FromTypes(new[] { typeof(ManualEntryCfg) })[0];
|
||||
public override XmlSerializer GetSerializer() { return Serializer; }
|
||||
|
||||
public IComponentCfgCtrl GetControl(IList<Config.Entities.Component> cmpntEntities) { return new ManualEntryCfgCtrl(); }
|
||||
|
||||
public Culture Culture;
|
||||
public string Prompt;
|
||||
public string[] Items;
|
||||
|
||||
/// Private parameterless constructor invoked by all other (public) constructors
|
||||
ManualEntryCfg()
|
||||
{
|
||||
}
|
||||
|
||||
public ManualEntryCfg(string name, IComponentFactory factory)
|
||||
: this()
|
||||
{
|
||||
Name = name;
|
||||
Factory = factory;
|
||||
ParentName = string.Empty;
|
||||
Culture = Culture.EN;
|
||||
Prompt = "Prompt";
|
||||
}
|
||||
|
||||
public string ToString(int i)
|
||||
{
|
||||
return string.Format("Name={0}, Culture={1}, Prompt={2}", Name, Culture, Prompt);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user