59 lines
1.7 KiB
C#
59 lines
1.7 KiB
C#
///
|
|
/// Copyright (c) 2020 Sensus Slovensko a.s.
|
|
///
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Xml.Serialization;
|
|
using Config.Entities;
|
|
using TBF.Rig.Generic;
|
|
|
|
namespace TBF.Rig.DataContainer.Evaporation
|
|
{
|
|
/// <summary>
|
|
/// Holds backup and security options - serializable configuration.
|
|
/// </summary>
|
|
public class EvaporationCfg : ComponentCfgBase, Generic.IComponentCfg, TBF.Rig.GenericDevices.ICalibInfoCfg
|
|
{
|
|
public static XmlSerializer Serializer = XmlSerializer.FromTypes(new[] { typeof(EvaporationCfg) })[0];
|
|
public override XmlSerializer GetSerializer() { return Serializer; }
|
|
|
|
public IComponentCfgCtrl GetControl(IList<Config.Entities.Component> cmpntEntities) { return new EvaporationCfgCtrl(); }
|
|
|
|
/// Calibration info serialized parameters displayed in Metrology tab page
|
|
string calibCertificateNr;
|
|
DateTime calibDate;
|
|
DateTime calibValidDate;
|
|
public string CalibCertificateNr
|
|
{
|
|
get { return calibCertificateNr; }
|
|
set { calibCertificateNr = value; }
|
|
}
|
|
public DateTime CalibDate
|
|
{
|
|
get { return calibDate; }
|
|
set { calibDate = value; }
|
|
}
|
|
public DateTime CalibValidDate
|
|
{
|
|
get { return calibValidDate; }
|
|
set { calibValidDate = value; }
|
|
}
|
|
|
|
|
|
/// Private parameterless constructor invoked by all other (public) constructors
|
|
EvaporationCfg() {}
|
|
|
|
public EvaporationCfg(string name, IComponentFactory factory)
|
|
: this()
|
|
{
|
|
Name = name;
|
|
Factory = factory;
|
|
ParentName = string.Empty;
|
|
}
|
|
public string ToString(int i)
|
|
{
|
|
return Name;
|
|
}
|
|
}
|
|
}
|