44 lines
1.1 KiB
C#
44 lines
1.1 KiB
C#
///
|
|
/// Copyright (c) 2017 Sensus Metering Systems
|
|
///
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Xml.Serialization;
|
|
using TBF.BenchControl.Generic;
|
|
using TBF.Resources;
|
|
|
|
namespace TBF.BenchControl.TestMethods.GrabImage
|
|
{
|
|
public class Cfg : ComponentCfgBase, Generic.IComponentCfg
|
|
{
|
|
public static XmlSerializer Serializer = XmlSerializer.FromTypes(new[] { typeof(Cfg) })[0];
|
|
protected override XmlSerializer GetSerializer() { return Serializer; }
|
|
|
|
public IComponentCfgCtrl GetControl() { return new CfgCtrl(); }
|
|
|
|
|
|
public bool BlackAndWhite;
|
|
public bool LowResolution;
|
|
|
|
|
|
/// Private parameterless constructor invoked by all other (public) constructors
|
|
Cfg() {}
|
|
|
|
public Cfg(IComponentFactory factory, string name)
|
|
: this()
|
|
{
|
|
this.Factory = factory;
|
|
Name = name;
|
|
ParentName = string.Empty;
|
|
BlackAndWhite = false;
|
|
LowResolution = false;
|
|
}
|
|
|
|
public string ToString(int i)
|
|
{
|
|
return string.Format("Name={0}, B&W={1}, LowRes={2}", Name, BlackAndWhite, LowResolution);
|
|
}
|
|
}
|
|
}
|