Minor and style changes

This commit is contained in:
Milan Hanajik
2014-12-30 00:17:45 +01:00
parent 0ac7ba05d6
commit 42c2f88597
13 changed files with 160 additions and 26 deletions
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using log4net;
using TBF.BenchControl;
using TBF.BenchControl.GenericDevices;
@@ -7,7 +8,14 @@ namespace TBF.BenchControl.DataEntry.Munich
{
public class EntryForm : Generic.IComponent, IOperation, IDataEntry, IHasCycleBeginForm, IHasCycleEndForm, IHasProtocolTitle
{
readonly EntryFormCfg entryFormCfg;
private static readonly ILog log = LogManager.GetLogger(typeof(EntryForm));
public override string ToString()
{
return string.Format("Name={0}", Name);
}
readonly EntryFormCfg entryFormCfg;
public Generic.IComponentCfg Cfg { get { return entryFormCfg; } }
public static void ResetStaticProperties() { }
@@ -20,10 +28,10 @@ namespace TBF.BenchControl.DataEntry.Munich
public string MainBeginStateText { get { return mainBeginStateText; } }
string mainBeginStateText;
public string AuxBegintateText { get { return auxBeginStateText; } }
public string AuxBeginStateText { get { return auxBeginStateText; } }
string auxBeginStateText;
public string ProtocolTitle { get { return protocolTitle; } }
public string ProtocolTitle { get { return protocolTitle; } }
string protocolTitle;
@@ -60,7 +68,9 @@ namespace TBF.BenchControl.DataEntry.Munich
if (cfg == null) throw new ArgumentNullException("cfg");
this.entryFormCfg = cfg;
currentOp = CurrentOp.None;
}
log.Debug(this.ToString());
}
/// <returns>Reference to the operation</returns>
public IOperation ShowCycleBeginFormOp(IList<IWaterMeter> waterMeters)