42 lines
1.1 KiB
C#
42 lines
1.1 KiB
C#
///
|
|
/// Copyright (c) 2018 Sensus Slovensko a.s.
|
|
///
|
|
using System.Xml.Serialization;
|
|
using TBF.BenchControl.Generic;
|
|
|
|
namespace TBF.BenchControl.Output.DB.ProductionTracing
|
|
{
|
|
public class TracingCfg : ComponentCfgBase, Generic.IComponentCfg
|
|
{
|
|
public static XmlSerializer Serializer = XmlSerializer.FromTypes(new[] { typeof(TracingCfg) })[0];
|
|
public override XmlSerializer GetSerializer() { return Serializer; }
|
|
|
|
public IComponentCfgCtrl GetControl() { return new TracingCfgCtrl(); }
|
|
|
|
|
|
public string Workplace;
|
|
public string ConnStr;
|
|
|
|
|
|
/// Private parameterless constructor invoked by all other (public) constructors
|
|
TracingCfg()
|
|
{
|
|
ParentName = string.Empty;
|
|
Workplace = "WR10";
|
|
ConnStr = "SERVER=10.42.128.16; DATABASE=st_wr_shared_config; UID=u9305784; PASSWORD=p89344390; CHARSET=utf8;";
|
|
}
|
|
|
|
public TracingCfg(string name, IComponentFactory factory)
|
|
: this()
|
|
{
|
|
this.Name = name;
|
|
this.Factory = factory;
|
|
}
|
|
|
|
public string ToString(int i)
|
|
{
|
|
return string.Format("Name={0}, Workplace={1}", Name, Workplace);
|
|
}
|
|
}
|
|
}
|