tbf/TBF/BenchControl/TestMethods/LiveStream/LiveStreamCfg.cs

42 lines
1.0 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.LiveStream
{
public class LiveStreamCfg : ComponentCfgBase, Generic.IComponentCfg
{
public static XmlSerializer Serializer = XmlSerializer.FromTypes(new[] { typeof(LiveStreamCfg) })[0];
protected override XmlSerializer GetSerializer() { return Serializer; }
public IComponentCfgCtrl GetControl() { return new CfgCtrl(); }
public bool HiResolution;
/// Private parameterless constructor invoked by all other (public) constructors
LiveStreamCfg() {}
public LiveStreamCfg(IComponentFactory factory, string name)
: this()
{
this.Factory = factory;
Name = name;
ParentName = string.Empty;
HiResolution = false;
}
public string ToString(int i)
{
return string.Format("Name={0}, HiResolution={1}", Name, HiResolution ? Strings.yes : Strings.no);
}
}
}