Style changes to prevent warnings.
This commit is contained in:
parent
e651244601
commit
535038bce1
@ -147,7 +147,7 @@ namespace EventViewer
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (Exception)
|
||||
{
|
||||
//log.ErrorFormat("Failed to load from '{0}': {1}", fileName, e.Message);
|
||||
return null;
|
||||
@ -203,7 +203,7 @@ namespace EventViewer
|
||||
}
|
||||
#endif
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (Exception)
|
||||
{
|
||||
//log.ErrorFormat("Failed to save to '{0}': {1}", Program.LocalSettingsFileName, e.Message);
|
||||
}
|
||||
|
||||
@ -122,7 +122,7 @@ namespace EventViewer
|
||||
/// Open the main application window
|
||||
Application.Run(new EventViewerWnd());
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (Exception)
|
||||
{
|
||||
//LogException(log, "Exception in Application.Run(new ResultsBrowserWnd(args))", e);
|
||||
}
|
||||
|
||||
@ -193,7 +193,7 @@ namespace GraphLib
|
||||
Samples = newSamples;
|
||||
return samplesCount;
|
||||
}
|
||||
catch (Exception exc)
|
||||
catch (Exception)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -11,13 +11,10 @@ namespace RestClient
|
||||
{
|
||||
public class BaseClient
|
||||
{
|
||||
private string _token;
|
||||
|
||||
private string _baseUrl;
|
||||
|
||||
public string ErrorMessage { get; set; }
|
||||
|
||||
private readonly HttpClient client;
|
||||
private AuthenticationHeaderValue _authValue;
|
||||
|
||||
public BaseClient(string baseUrl)
|
||||
|
||||
1
Results/Forms/MoreWMResultsDlg.Designer.cs
generated
1
Results/Forms/MoreWMResultsDlg.Designer.cs
generated
@ -153,7 +153,6 @@
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.TabControl tabControl1;
|
||||
private OneWMResultsRowsCtrl oneWMResultsCtrl;
|
||||
private System.Windows.Forms.TabPage graphsTabPage;
|
||||
private System.Windows.Forms.TabPage productionTracingTabPage;
|
||||
private System.Windows.Forms.SplitContainer productionTracingSplitContainer;
|
||||
|
||||
@ -33,9 +33,9 @@ namespace ResultsBrowser
|
||||
|
||||
static IList<IComponent> tbfComponents;
|
||||
static IList<IDevice> tbfDevices;
|
||||
|
||||
#if IPERL
|
||||
OracleConnection oracleConnection; /// Oracle database connection
|
||||
|
||||
#endif
|
||||
public ResultsBrowserWnd(string[] args)
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
@ -14,7 +14,7 @@ namespace Statistics.UserControls
|
||||
public partial class MidOrWaterMetersCtrl : UserControl
|
||||
{
|
||||
public int MidId; /// 1-based MID Id.
|
||||
public StatisticsDlg Parent;
|
||||
public new StatisticsDlg Parent;
|
||||
|
||||
|
||||
public bool IsFlowEnabled(int i)
|
||||
|
||||
@ -140,7 +140,7 @@ namespace TBF
|
||||
IEnumerable<string> files = Directory.EnumerateFiles(TempImagesDir); /// TODO: Implement recursive directory delete
|
||||
foreach (var file in files) File.Delete(file);
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (Exception)
|
||||
{
|
||||
MessageBox.Show("Error creating a local application data directory and preparing an initial configuration", "Fatal error");
|
||||
return; /// Fatal error
|
||||
|
||||
@ -84,7 +84,7 @@ namespace TBF.Rig.Ambient.Comet
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
public void Initialize()
|
||||
public override void Initialize()
|
||||
{
|
||||
temperature = DefaultTemperature;
|
||||
pressure = DefaultPressure;
|
||||
|
||||
@ -85,7 +85,7 @@ namespace TBF.Rig.Ambient.Greco
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
public void Initialize()
|
||||
public override void Initialize()
|
||||
{
|
||||
temperature = DefaultTemperature;
|
||||
pressure = DefaultPressure;
|
||||
|
||||
@ -6,7 +6,6 @@ using System.Windows.Forms;
|
||||
using Config.Entities;
|
||||
using TBF.Rig.Generic;
|
||||
using TBF.UI.Bench.Components;
|
||||
using TBF.UI.Bench.Components;
|
||||
|
||||
namespace TBF.Rig.BuiltIn.Valve
|
||||
{
|
||||
|
||||
@ -17,8 +17,6 @@ namespace TBF.Rig.ControlBoard.Legacy
|
||||
readonly Command commandOnStopOp;
|
||||
readonly TestMethods testMethod;
|
||||
|
||||
bool started = false;
|
||||
|
||||
///
|
||||
/// Internal states of this operation
|
||||
///
|
||||
|
||||
@ -30,8 +30,6 @@ namespace TBF.Rig.ControlBoard.Legacy
|
||||
readonly int repetition;
|
||||
|
||||
int counter;
|
||||
bool cmdSent = false;
|
||||
bool divRead = false;
|
||||
|
||||
|
||||
/// <summary>
|
||||
@ -133,7 +131,6 @@ namespace TBF.Rig.ControlBoard.Legacy
|
||||
{
|
||||
controlBoard.SyncRoute();
|
||||
controlBoard.SendCommand(Command.ReadDivTransition, 0, 0, 0, 0, StopDevs.None);
|
||||
cmdSent = true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@ -15,7 +15,7 @@ namespace TBF.Rig.ControlBoard.Legacy
|
||||
/// Set by the constructor
|
||||
readonly CBoard controlBoard;
|
||||
readonly IRegValve regulValve;
|
||||
readonly int regulValveNr;
|
||||
readonly int regulValveNr;
|
||||
readonly int regulValveStableTime;
|
||||
readonly int flowMeterNr;
|
||||
readonly double nominalFlow;
|
||||
@ -79,6 +79,8 @@ namespace TBF.Rig.ControlBoard.Legacy
|
||||
flowMeterNr = outputPath.FlowMeter.Idx1;
|
||||
|
||||
this.regulValve = outputPath.RegValve;
|
||||
regulValveNr = 0;
|
||||
regulValveStableTime = 0;
|
||||
|
||||
if (outputPath.Diverter is TBF.Rig.Uni.Diverter.Diverter)
|
||||
{
|
||||
|
||||
@ -73,7 +73,7 @@ namespace TBF.Rig.ControlBoard.Papouch
|
||||
///
|
||||
/// IDevice interface
|
||||
///
|
||||
public void Initialize()
|
||||
public override void Initialize()
|
||||
{
|
||||
outputsInitialized = false;
|
||||
runningOp = SelectedOp.None;
|
||||
|
||||
@ -153,7 +153,7 @@ namespace TBF.Rig.Danfoss.VLT2800
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
public void Initialize()
|
||||
public override void Initialize()
|
||||
{
|
||||
bitNr = pumpCfg.BitNr;
|
||||
Mask = (((UInt128)1) << bitNr);
|
||||
|
||||
@ -12,25 +12,12 @@ namespace TBF.Rig.Dummy.Balance
|
||||
public class Component : ComponentBase, IScale, IOperation
|
||||
{
|
||||
private static readonly ILog log = LogManager.GetLogger(typeof(Component));
|
||||
public override string ToString()
|
||||
{
|
||||
return string.Format("{0}({1})", this.GetType().Namespace.Substring(8), Cfg.ToString(1));
|
||||
}
|
||||
|
||||
public Component()
|
||||
{
|
||||
}
|
||||
|
||||
public Component(Generic.IComponentCfg cfg)
|
||||
: base(cfg)
|
||||
{
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
public override string ToString() { return string.Format("{0}({1})", ClassName, Cfg.ToString(1)); }
|
||||
|
||||
public int ScaleNr { get { return 0; } }
|
||||
public double Capacity { get { return 10000.0; } }
|
||||
public IValve DrainValve { get { return null; } }
|
||||
public IValve DrainValve2 { get { return null; } }
|
||||
public IValve DrainValve { get { return null; } }
|
||||
public IValve DrainValve2 { get { return null; } }
|
||||
public bool ContainsMoreThen(float thld) { return (thld == 0); }
|
||||
public bool IsEmpty() { return true; }
|
||||
public double EvaporationRate(double t) { return 0; }
|
||||
@ -40,6 +27,16 @@ namespace TBF.Rig.Dummy.Balance
|
||||
public float BuoyancyPress { get { return 1.013f; } }
|
||||
public float BuoyancyHumi { get { return 50.0f; } }
|
||||
|
||||
|
||||
public Component() { }
|
||||
|
||||
public Component(Generic.IComponentCfg cfg)
|
||||
: base(cfg)
|
||||
{
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
|
||||
public IOperation ZeroOp()
|
||||
{
|
||||
return this;
|
||||
@ -63,9 +60,7 @@ namespace TBF.Rig.Dummy.Balance
|
||||
}
|
||||
|
||||
/// <summary>Start this operation</summary>
|
||||
public void Start()
|
||||
{
|
||||
}
|
||||
public void Start() { }
|
||||
|
||||
/// <summary>Run this operation</summary>
|
||||
public Event Run()
|
||||
@ -74,8 +69,6 @@ namespace TBF.Rig.Dummy.Balance
|
||||
}
|
||||
|
||||
/// <summary>Stop this operation</summary>
|
||||
public void Stop()
|
||||
{
|
||||
}
|
||||
public void Stop() { }
|
||||
}
|
||||
}
|
||||
|
||||
@ -8,7 +8,7 @@ using TBF.Boxes;
|
||||
|
||||
namespace TBF.Rig.Dummy.RegValve
|
||||
{
|
||||
public class RegValve : ComponentBase, IDevice, GenericDevices.IRegValve, SchematicDrawing.IDrawingItCmpnt
|
||||
public class RegValve : ComponentBase, GenericDevices.IRegValve, SchematicDrawing.IDrawingItCmpnt
|
||||
{
|
||||
private static readonly ILog log = LogManager.GetLogger(typeof(RegValve));
|
||||
public override string ToString() { return string.Format("RegulValve({0})", Cfg.ToString(-1)); }
|
||||
@ -27,24 +27,19 @@ namespace TBF.Rig.Dummy.RegValve
|
||||
public IDictionary<double, double> Dict { get { return dict; } }
|
||||
|
||||
|
||||
public RegValve()
|
||||
{
|
||||
}
|
||||
public RegValve() { }
|
||||
|
||||
public RegValve(Generic.IComponentCfg cfg, IList<Generic.IComponent> components)
|
||||
: base(cfg)
|
||||
{
|
||||
RegulValveCfg = cfg as RegValveCfg;
|
||||
dict = new Dictionary<double, double>();
|
||||
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
public void Initialize() { }
|
||||
public void RunDeviceBefore() { }
|
||||
public void RunDeviceAfter() { }
|
||||
public void StopDevice() { }
|
||||
public void StopDevice2() { }
|
||||
public override void Initialize()
|
||||
{
|
||||
dict = new Dictionary<double, double>();
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
///
|
||||
/// Copyright (c) 2017 Sensus Metering Systems
|
||||
/// Copyright (c) 2017 Sensus Slovensko a.s.
|
||||
///
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
@ -11,8 +11,6 @@ namespace TBF.Rig.Dummy.RegValve
|
||||
{
|
||||
public partial class RegulValveCfgCtrl : UserControl, IComponentCfgCtrl
|
||||
{
|
||||
ComponentParametersDlg parent;
|
||||
|
||||
public bool ShowMore { get { return true; } }
|
||||
|
||||
RegValveCfg config;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
///
|
||||
/// Copyright (c) 2017 Sensus Metering Systems
|
||||
/// Copyright (c) 2017 Sensus Slovensko a.s.
|
||||
///
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@ -35,7 +35,6 @@ namespace TBF.Rig.Dummy.RegValve
|
||||
readonly int timeout;
|
||||
|
||||
/// Process values
|
||||
bool firstRun;
|
||||
int expireTime;
|
||||
bool positionReached;
|
||||
|
||||
@ -56,7 +55,6 @@ namespace TBF.Rig.Dummy.RegValve
|
||||
|
||||
this.posLoPct = posLoPct;
|
||||
this.posHiPct = posHiPct;
|
||||
|
||||
this.timeout = timeout;
|
||||
|
||||
log.Debug(this.ToString());
|
||||
@ -74,7 +72,6 @@ namespace TBF.Rig.Dummy.RegValve
|
||||
/// <summary>Start this operation</summary>
|
||||
public void Start()
|
||||
{
|
||||
firstRun = true;
|
||||
positionReached = false;
|
||||
expireTime = StateMachine.Time + timeout;
|
||||
log.InfoFormat("Start(): RV#={0}, reqPosLo={1}%, reqPosHi={2}%", posLoPct.ToString("F1"), posHiPct.ToString("F1"));
|
||||
@ -111,8 +108,6 @@ namespace TBF.Rig.Dummy.RegValve
|
||||
}
|
||||
|
||||
/// <summary>Stop this operation</summary>
|
||||
public void Stop()
|
||||
{
|
||||
}
|
||||
public void Stop() { }
|
||||
}
|
||||
}
|
||||
|
||||
@ -27,9 +27,7 @@ namespace TBF.Rig.Dummy.Valve
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
bool state;
|
||||
|
||||
public bool State { get { return state; } }
|
||||
public bool State { get { return false; } }
|
||||
public ValveCategory Category { get { return ValveCategory.None; } }
|
||||
public int Delay { get { return 1; } }
|
||||
public IValve CoupledTo { get { return null; } }
|
||||
|
||||
@ -19,6 +19,9 @@ namespace TBF.Rig.Generic
|
||||
|
||||
IComponentCfg Cfg { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Measurement correction table
|
||||
/// </summary>
|
||||
IList<Config.Entities.MeasurementCorrection> Corrections { get; set; }
|
||||
|
||||
IList<Config.Entities.Uncertainty> Uncertainties { get; set; }
|
||||
|
||||
@ -6,12 +6,5 @@ namespace TBF.Rig.GenericDevices
|
||||
{
|
||||
public interface IEventTrigger : IResultsProcessor
|
||||
{
|
||||
/// <summary>
|
||||
/// Analyze results of one batch of water meters and trigger appropriate events.
|
||||
/// Events: Event.ResultsProcessed, Event.Busy
|
||||
/// </summary>
|
||||
/// <param name="batch">Results of a batch of water meters</param>
|
||||
/// <returns>Reference to the operation</returns>
|
||||
IOperation ProcessResultsOp(Results.Entities.Batch batch);
|
||||
}
|
||||
}
|
||||
|
||||
@ -34,11 +34,6 @@ namespace TBF.Rig.GenericDevices
|
||||
/// </summary>
|
||||
int Idx1 { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Measurement correction table
|
||||
/// </summary>
|
||||
IList<Config.Entities.MeasurementCorrection> Corrections { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns current flow value in [m3/h]
|
||||
/// </summary>
|
||||
|
||||
@ -13,11 +13,6 @@ namespace TBF.Rig.GenericDevices
|
||||
/// </summary>
|
||||
public interface IPressureMeter : IComponent
|
||||
{
|
||||
/// <summary>
|
||||
/// Measurement correction table
|
||||
/// </summary>
|
||||
IList<MeasurementCorrection> Corrections { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Events: PressureDone, Error
|
||||
/// </summary>
|
||||
|
||||
@ -5,12 +5,6 @@ namespace TBF.Rig.GenericDevices
|
||||
{
|
||||
interface IRegReaderPulses : IRegReader
|
||||
{
|
||||
int Position { get; }
|
||||
int Filter { get; }
|
||||
|
||||
double PulsesPerLtr { get; } /// [imp/l] ... water meter or volume measurement part of a heat meter
|
||||
double LtrsPerPulse { get; } /// [l/imp]
|
||||
|
||||
int WMPulses { get; } /// Counted pulses of the water meter
|
||||
}
|
||||
}
|
||||
|
||||
@ -6,14 +6,6 @@ namespace TBF.Rig.GenericDevices
|
||||
{
|
||||
public interface IResultsPrinter : IResultsProcessor
|
||||
{
|
||||
/// <summary>
|
||||
/// Prints results fo one batch of water meters.
|
||||
/// Events: Event.ResultsPrinted, Event.Busy
|
||||
/// </summary>
|
||||
/// <param name="batch">Results of a batch of water meters</param>
|
||||
/// <returns>Reference to the operation</returns>
|
||||
IOperation ProcessResultsOp(Results.Entities.Batch batch);
|
||||
|
||||
/// <summary>
|
||||
/// When true printing at the end of cycle is bypassed.
|
||||
/// Can be used to disable printing without having to modify all procedures.
|
||||
|
||||
@ -6,12 +6,5 @@ namespace TBF.Rig.GenericDevices
|
||||
{
|
||||
public interface IResultsWriter : IResultsProcessor
|
||||
{
|
||||
/// <summary>
|
||||
/// Writes results of one batch of water meters into a file or a database.
|
||||
/// Events: Event.ResultsWritten, Event.Busy
|
||||
/// </summary>
|
||||
/// <param name="batch">Results of a batch of water meters</param>
|
||||
/// <returns>Reference to the operation</returns>
|
||||
IOperation ProcessResultsOp(Results.Entities.Batch batch);
|
||||
}
|
||||
}
|
||||
|
||||
@ -49,10 +49,5 @@ namespace TBF.Rig.GenericDevices
|
||||
/// Time in seconds to empty the tank completely when it is full
|
||||
/// </summary>
|
||||
int EmptyTimeSec { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Measurement correction table
|
||||
/// </summary>
|
||||
IList<Config.Entities.MeasurementCorrection> Corrections { get; }
|
||||
}
|
||||
}
|
||||
|
||||
@ -87,7 +87,7 @@ namespace TBF.Rig.MettlerToledo.Standard
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
public void Initialize()
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initalize(); /// Initializes DrainValve, etc., should be called in DebugMode.Simulate
|
||||
|
||||
|
||||
@ -30,7 +30,6 @@ namespace TBF.Rig.MettlerToledo.Standard
|
||||
int currentReadingsCount;
|
||||
|
||||
int startTime;
|
||||
bool activityStarted;
|
||||
bool measurementCompleted;
|
||||
int timeout;
|
||||
|
||||
@ -57,7 +56,6 @@ namespace TBF.Rig.MettlerToledo.Standard
|
||||
massReadings = new double[totalReadingsCount];
|
||||
sortedMassReadings = new double[totalReadingsCount];
|
||||
currentReadingsCount = 0;
|
||||
activityStarted = false;
|
||||
measurementCompleted = false;
|
||||
timeout = (method == Config.Entities.MassMethod.Scale) ? 60 : 2;
|
||||
|
||||
@ -94,13 +92,11 @@ namespace TBF.Rig.MettlerToledo.Standard
|
||||
if (delayBefore == 0 && scale.Activity == Activity.Idle)
|
||||
{
|
||||
StartMeasurement();
|
||||
activityStarted = true;
|
||||
scale.Activity = Activity.RunningOperation;
|
||||
opState = OpState.MassMeasurement;
|
||||
}
|
||||
else
|
||||
{
|
||||
activityStarted = false;
|
||||
opState = OpState.WaitingBeforeMeasurment;
|
||||
}
|
||||
}
|
||||
@ -118,7 +114,6 @@ namespace TBF.Rig.MettlerToledo.Standard
|
||||
if (StateMachine.Time >= startTime + delayBefore && scale.Activity == Activity.Idle)
|
||||
{
|
||||
StartMeasurement();
|
||||
activityStarted = true;
|
||||
scale.Activity = Activity.RunningOperation;
|
||||
opState = OpState.MassMeasurement;
|
||||
}
|
||||
|
||||
@ -90,7 +90,7 @@ namespace TBF.Rig.Modbus.Ambient.Comet
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
public void Initialize()
|
||||
public override void Initialize()
|
||||
{
|
||||
temperature = DefaultTemperature;
|
||||
pressure = DefaultPressure;
|
||||
|
||||
@ -58,7 +58,7 @@ namespace TBF.Rig.Modbus.Common
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
public void Initialize()
|
||||
public override void Initialize()
|
||||
{
|
||||
telegramsToSend = new Queue<byte[]>();
|
||||
|
||||
|
||||
@ -44,7 +44,7 @@ namespace TBF.Rig.Modbus.PressureMeter.Meret
|
||||
///
|
||||
/// IDevice interface
|
||||
///
|
||||
public void Initialize()
|
||||
public override void Initialize()
|
||||
{
|
||||
ticketNumber = modbus.RegisterForPolling();
|
||||
}
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
///
|
||||
/// Copyright (c) 2017 Sensus Metering Systems
|
||||
/// Copyright (c) 2017 Sensus Slovensko a.s.
|
||||
///
|
||||
namespace TBF.Rig.Modbus.TankSelector
|
||||
{
|
||||
@ -10,7 +10,6 @@ namespace TBF.Rig.Modbus.TankSelector
|
||||
ushort unselectBitMask;
|
||||
bool doUnselect;
|
||||
bool unselectedWaitLevel;
|
||||
int time;
|
||||
|
||||
public UnselectTankOp(TankSelector tankSelector)
|
||||
{
|
||||
@ -72,8 +71,6 @@ namespace TBF.Rig.Modbus.TankSelector
|
||||
}
|
||||
|
||||
/// <summary>Stop this operation</summary>
|
||||
public void Stop()
|
||||
{
|
||||
}
|
||||
public void Stop() { }
|
||||
}
|
||||
}
|
||||
|
||||
@ -58,6 +58,15 @@ namespace TBF.Rig.Modbus.TempMeter.Groch
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
/// Only TempMeter with Channel == 0 communicates via the parent Modbus component
|
||||
if (Channel == 0)
|
||||
{
|
||||
ticketNumber = modbus.RegisterForPolling();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public IList<Config.CalendarEvent.ICalendarEvent> GetCalendarEvents()
|
||||
{
|
||||
@ -90,15 +99,6 @@ namespace TBF.Rig.Modbus.TempMeter.Groch
|
||||
return calendarEvents;
|
||||
}
|
||||
|
||||
public void Initialize()
|
||||
{
|
||||
/// Only TempMeter with Channel == 0 communicates via the parent Modbus component
|
||||
if (Channel == 0)
|
||||
{
|
||||
ticketNumber = modbus.RegisterForPolling();
|
||||
}
|
||||
}
|
||||
|
||||
public void RunDeviceBefore()
|
||||
{
|
||||
if (Channel != 0 ||
|
||||
@ -160,6 +160,7 @@ namespace TBF.Rig.Modbus.TempMeter.Groch
|
||||
public void StopDevice() { }
|
||||
public void StopDevice2() { }
|
||||
|
||||
|
||||
public double ReadTemperature()
|
||||
{
|
||||
if (Cfg.DebugLevel == Config.Entities.DebugMode.Normal)
|
||||
|
||||
@ -41,14 +41,14 @@ namespace TBF.Rig.Modbus.TempMeter.Meret
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
///
|
||||
/// IDevice interface
|
||||
///
|
||||
public void Initialize()
|
||||
public override void Initialize()
|
||||
{
|
||||
ticketNumber = modbus.RegisterForPolling();
|
||||
}
|
||||
|
||||
///
|
||||
/// IDevice interface
|
||||
///
|
||||
/// <summary>Run this device</summary>
|
||||
public void RunDeviceBefore()
|
||||
{
|
||||
|
||||
@ -106,9 +106,6 @@ namespace TBF.Rig.Modbus.UltrasoundLevelMeter
|
||||
message = "Invalid index";
|
||||
return false;
|
||||
}
|
||||
|
||||
message = ParamName(i) + " is invalid";
|
||||
return false;
|
||||
}
|
||||
|
||||
void CopyContentTo(LevelMeterCfg prms)
|
||||
|
||||
@ -106,9 +106,6 @@ namespace TBF.Rig.Modbus.WaterAnalyzer
|
||||
message = "Invalid index";
|
||||
return false;
|
||||
}
|
||||
|
||||
message = ParamName(i) + " is invalid";
|
||||
return false;
|
||||
}
|
||||
|
||||
void CopyContentTo(AnalyzerCfg prms)
|
||||
|
||||
@ -150,7 +150,7 @@ namespace TBF.Rig.Network.Camera.CLP1611
|
||||
}
|
||||
|
||||
|
||||
public void Initialize()
|
||||
public override void Initialize()
|
||||
{
|
||||
cameraIdx = GetCameraIdx();
|
||||
|
||||
|
||||
@ -7,7 +7,6 @@ namespace TBF.Rig.Network.Camera.CLP1611
|
||||
public partial class TerminalDlg : Form
|
||||
{
|
||||
TelnetClient telnet;
|
||||
bool dlgLoaded;
|
||||
|
||||
public TerminalDlg()
|
||||
{
|
||||
@ -24,11 +23,10 @@ namespace TBF.Rig.Network.Camera.CLP1611
|
||||
private void Terminal_Load(object sender, EventArgs e)
|
||||
{
|
||||
telnet.vtTextChangedHandler += delegate(object sndr, VtTextChangedEventArgs args)
|
||||
{
|
||||
if (InvokeRequired) { Invoke(new EventHandler<VtTextChangedEventArgs>(OnTextChanged), sndr, args); }
|
||||
else OnTextChanged(sndr, args);
|
||||
};
|
||||
dlgLoaded = true;
|
||||
{
|
||||
if (InvokeRequired) { Invoke(new EventHandler<VtTextChangedEventArgs>(OnTextChanged), sndr, args); }
|
||||
else OnTextChanged(sndr, args);
|
||||
};
|
||||
}
|
||||
|
||||
void OnTextChanged(object sndr, VtTextChangedEventArgs args)
|
||||
|
||||
@ -49,6 +49,7 @@ namespace TBF.Rig.Operations
|
||||
this.enthalpy = enthalpy;
|
||||
|
||||
if (path == null) throw new Exception("path argument in EnthalpyCalculationOp constructor");
|
||||
this.path = path;
|
||||
}
|
||||
|
||||
/// <param name="obj">Time period (TimeSpan)</param>
|
||||
|
||||
@ -117,7 +117,7 @@ namespace TBF.Rig.Output.DB.ProductionTracing
|
||||
///
|
||||
/// IDevice interface implementation
|
||||
///
|
||||
public void Initialize()
|
||||
public override void Initialize()
|
||||
{
|
||||
if (tracingCfg.DebugLevel == DebugMode.Simulate) return;
|
||||
|
||||
|
||||
@ -112,32 +112,32 @@ namespace TBF.Rig.Output.DB.SensusOracle
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
///
|
||||
/// The following 3 variables are always updated together
|
||||
///
|
||||
int wmTypeId;
|
||||
int wmTypeRevision;
|
||||
string procedureSignature;
|
||||
#if ORACLE_DB
|
||||
IList<SensusTestInfo> oracleTestInfo; /// Raw incomplete test info from Oracle DB (or null)
|
||||
SensusTestInfo[] completeTestInfo; /// Complete TBF test info obtained as the best match (never null when oracleTestInfo != null)
|
||||
|
||||
/// The following 3 variables are always updated together
|
||||
int wmTypeId;
|
||||
int wmTypeRevision;
|
||||
string procedureSignature;
|
||||
#endif
|
||||
|
||||
public Database() {}
|
||||
public Database() {}
|
||||
|
||||
public Database(Generic.IComponentCfg cfg)
|
||||
: base(cfg)
|
||||
{
|
||||
dbCfg = cfg as DatabaseCfg;
|
||||
currentOpState = OpState.None;
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
///
|
||||
/// IDevice interface implementation
|
||||
///
|
||||
public void Initialize()
|
||||
public override void Initialize()
|
||||
{
|
||||
currentOpState = OpState.None;
|
||||
|
||||
if (dbCfg.DebugLevel == DebugMode.Simulate) return;
|
||||
|
||||
productionDB = new OracleConnection("Data Source=STARA01.WORLD;User Id=deltachef;Password=deltachef;");
|
||||
|
||||
@ -57,8 +57,6 @@ namespace TBF.Rig.Output.FileWriters.ImageArchiver
|
||||
|
||||
Results.Entities.Batch batch;
|
||||
|
||||
bool abort; /// Set to 'true' by Stop() operation to abort writing to the file
|
||||
|
||||
|
||||
public Archiver() {}
|
||||
|
||||
|
||||
@ -25,14 +25,12 @@ namespace TBF.Rig.Output.FileWriters.ImageArchiver
|
||||
}
|
||||
}
|
||||
|
||||
string[] selectedItems;
|
||||
|
||||
public ArchiverCfgCtrl()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void WriterCfgCtrl_Load(object sender, EventArgs e)
|
||||
private void ArchiverCfgCtrl_Load(object sender, EventArgs e)
|
||||
{
|
||||
for (YearFolders s = 0; s < YearFolders.Count; s++) yearFoldersComboBox.Items.Add(s.ToString());
|
||||
for (MonthFolders s = 0; s < MonthFolders.Count; s++) monthFoldersComboBox.Items.Add(s.ToString());
|
||||
|
||||
@ -292,7 +292,7 @@ namespace TBF.Rig.Output.FileWriters.ImageArchiver
|
||||
this.Controls.Add(this.classNameLabel);
|
||||
this.Name = "ArchiverCfgCtrl";
|
||||
this.Size = new System.Drawing.Size(455, 350);
|
||||
this.Load += new System.EventHandler(this.WriterCfgCtrl_Load);
|
||||
this.Load += new System.EventHandler(this.ArchiverCfgCtrl_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
|
||||
@ -46,7 +46,9 @@ namespace TBF.Rig
|
||||
static IList<Config.Entities.BenchPath> benchPaths;
|
||||
static IList<Config.Entities.OutputPath> outputPaths;
|
||||
static IList<Config.Entities.MetersPath> metersPaths;
|
||||
#if HEAT_METERS
|
||||
static IList<Config.Entities.HeatMetersPath> heatMetersPaths;
|
||||
#endif
|
||||
public static IList<Config.Entities.TransitionSequence> TransitionSequences;
|
||||
public static IList<Config.Entities.TransitionStep> TransitionSteps;
|
||||
|
||||
|
||||
@ -249,9 +249,6 @@ namespace TBF.Rig.TestMethods.Adjustment
|
||||
while (!e.Contains(Event.TimerExpired));
|
||||
}
|
||||
|
||||
|
||||
setting_flow:
|
||||
|
||||
//------------------------------------------------
|
||||
Bridge.OnActivity(this, Strings.Setting_the_flow);
|
||||
//------------------------------------------------
|
||||
@ -400,11 +397,9 @@ namespace TBF.Rig.TestMethods.Adjustment
|
||||
}
|
||||
while (!e.Contains(Event.TestCompleted) && !e.Contains(Event.Next)); /// 'Next' button is enabled in Debug version only
|
||||
|
||||
/// Measurement loop - end
|
||||
/// One test completed
|
||||
StopRecordingStatistics();
|
||||
|
||||
one_test_completed:
|
||||
|
||||
//------------------------------------------------
|
||||
Bridge.OnActivity(this, Strings.Adjustment_in_progress);
|
||||
//------------------------------------------------
|
||||
|
||||
@ -173,8 +173,8 @@ namespace TBF.Rig.TestMethods.CombinedWithDetection
|
||||
/// int refPulses = (int)(timeSec * (2000.0f * targetFlow / pOut.FlowMeter.NominalFlow));
|
||||
int totalPulses = (int)(test.Volume / LtrPerRefPulse + 0.5f);
|
||||
|
||||
//====================================
|
||||
loop:
|
||||
///============================================================================================
|
||||
|
||||
/// Read pressure and temperature once before calling Bridge.OnTestSelected(...)
|
||||
State.Create(string.Format("{0}({1}) : Measuring process data", test.Method, test.Name))
|
||||
.AddOperation(checkUiOp)
|
||||
@ -228,9 +228,6 @@ namespace TBF.Rig.TestMethods.CombinedWithDetection
|
||||
switching_flow_detection:
|
||||
|
||||
int flowDetectTime0 = StateMachine.Time;
|
||||
int flowDetectTime = 0;
|
||||
float estFlowSetTime = 100.0f;
|
||||
|
||||
|
||||
///
|
||||
/// Prepare cameras, ROI-s and measurementOperations
|
||||
|
||||
@ -9,7 +9,7 @@ using TBF.Rig;
|
||||
|
||||
namespace TBF.Rig.TestMethods.Counter
|
||||
{
|
||||
public class TestMethod : ComponentBase, GenericDevices.ITestMethod, Generic.IDevice
|
||||
public class TestMethod : ComponentBase, GenericDevices.ITestMethod
|
||||
{
|
||||
private static readonly ILog log = LogManager.GetLogger(typeof(TestMethod));
|
||||
public override string ToString() { return string.Format("{0}({1})", ClassName, Cfg.ToString(-1)); }
|
||||
@ -34,17 +34,14 @@ namespace TBF.Rig.TestMethods.Counter
|
||||
|
||||
|
||||
public TestMethod() { }
|
||||
///
|
||||
|
||||
public TestMethod(Generic.IComponentCfg cfg)
|
||||
: base(cfg)
|
||||
{
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
///
|
||||
/// IDevice interface implementation
|
||||
///
|
||||
public void Initialize()
|
||||
public override void Initialize()
|
||||
{
|
||||
counterIdx0 = nextCounterIdx;
|
||||
nextCounterIdx++;
|
||||
@ -57,10 +54,7 @@ namespace TBF.Rig.TestMethods.Counter
|
||||
Counters[nextCounterIdx - 1] = this;
|
||||
}
|
||||
}
|
||||
public void RunDeviceBefore() { }
|
||||
public void RunDeviceAfter() { }
|
||||
public void StopDevice() { }
|
||||
public void StopDevice2() { }
|
||||
|
||||
|
||||
public IList<Event> Execute(Test test, int repetNr, bool isLastRepetition)
|
||||
{
|
||||
|
||||
@ -142,8 +142,8 @@ namespace TBF.Rig.TestMethods.DiverterTest
|
||||
LtrPerRefPulse = outPath.FlowMeter.LtrPerPulse;
|
||||
int totalPulses = (int)(test.Volume / LtrPerRefPulse + 0.5f);
|
||||
|
||||
//====================================
|
||||
loop:
|
||||
///============================================================================================
|
||||
|
||||
/// Read pressure and temperature once before calling Bridge.OnTestSelected(...)
|
||||
State.Create(string.Format("{0}({1}) : Measuring process data", test.Method, test.Name))
|
||||
.AddOperation(checkUiOp)
|
||||
@ -305,9 +305,6 @@ namespace TBF.Rig.TestMethods.DiverterTest
|
||||
while (!e.Contains(Event.TimerExpired));
|
||||
}
|
||||
|
||||
|
||||
setting_flow:
|
||||
|
||||
//------------------------------------------------
|
||||
Bridge.OnActivity(this, Strings.Setting_the_flow);
|
||||
//------------------------------------------------
|
||||
@ -560,10 +557,7 @@ namespace TBF.Rig.TestMethods.DiverterTest
|
||||
}
|
||||
} /// end for ... diverter test loop
|
||||
|
||||
/// Measurement loop - end
|
||||
|
||||
test_completed:
|
||||
|
||||
/// Test completed
|
||||
StopRecordingStatistics();
|
||||
|
||||
///
|
||||
@ -861,8 +855,6 @@ namespace TBF.Rig.TestMethods.DiverterTest
|
||||
cBrd.Stop(false);
|
||||
}
|
||||
|
||||
stopTestWOStoppingDivGateEtc:
|
||||
|
||||
return new List<Event> { retVal };
|
||||
}
|
||||
}
|
||||
|
||||
@ -142,8 +142,8 @@ namespace TBF.Rig.TestMethods.Endurance
|
||||
LtrPerRefPulse = outPath.FlowMeter.LtrPerPulse; /// [ltr/pulse], nominal flow in [m3/h]
|
||||
int totalPulses = (int)(test.Volume / LtrPerRefPulse + 0.5f);
|
||||
|
||||
//====================================
|
||||
loop:
|
||||
///============================================================================================
|
||||
|
||||
/// Read pressure and temperature once before calling Bridge.OnTestSelected(...)
|
||||
State.Create(string.Format("{0}({1}) : Measuring process data", test.Method, test.Name))
|
||||
.AddOperation(checkUiOp)
|
||||
@ -690,8 +690,6 @@ namespace TBF.Rig.TestMethods.Endurance
|
||||
while (!e.Contains(Event.PreviousStopped));
|
||||
}
|
||||
|
||||
stopTestWOStoppingDivGateEtc:
|
||||
|
||||
return new List<Event> { retVal };
|
||||
}
|
||||
}
|
||||
|
||||
@ -133,9 +133,8 @@ namespace TBF.Rig.TestMethods.FixedStart
|
||||
/// int refPulses = (int)(timeSec * (2000.0f * targetFlow / pOut.FlowMeter.NominalFlow));
|
||||
int totalPulses = (int)(test.Volume / LtrPerRefPulse + 0.5f);
|
||||
|
||||
|
||||
//====================================
|
||||
loop:
|
||||
///============================================================================================
|
||||
|
||||
/// Read pressure and temperature once before calling Bridge.OnTestSelected(...)
|
||||
State.Create(string.Format("{0}({1}) : Measuring process data", test.Method, test.Name))
|
||||
.AddOperation(checkUiOp)
|
||||
@ -247,9 +246,6 @@ namespace TBF.Rig.TestMethods.FixedStart
|
||||
while (!e.Contains(Event.TimerExpired));
|
||||
}
|
||||
|
||||
|
||||
setting_flow:
|
||||
|
||||
//------------------------------------------------
|
||||
Bridge.OnActivity(this, Strings.Setting_the_flow);
|
||||
//------------------------------------------------
|
||||
@ -1068,8 +1064,6 @@ namespace TBF.Rig.TestMethods.FixedStart
|
||||
while (!e.Contains(Event.PreviousStopped));
|
||||
}
|
||||
|
||||
stopTestWOStoppingDivGateEtc:
|
||||
|
||||
return new List<Event> { retVal };
|
||||
}
|
||||
}
|
||||
|
||||
@ -141,8 +141,8 @@ namespace TBF.Rig.TestMethods.FixedStartAdvanced
|
||||
/// int refPulses = (int)(timeSec * (2000.0f * targetFlow / pOut.FlowMeter.NominalFlow));
|
||||
int totalPulses = (int)(test.Volume / LtrPerRefPulse + 0.5f);
|
||||
|
||||
//====================================
|
||||
loop:
|
||||
///============================================================================================
|
||||
|
||||
/// Read pressure and temperature once before calling Bridge.OnTestSelected(...)
|
||||
State.Create(string.Format("{0}({1}) : Measuring process data", test.Method, test.Name))
|
||||
.AddOperation(checkUiOp)
|
||||
@ -235,9 +235,6 @@ namespace TBF.Rig.TestMethods.FixedStartAdvanced
|
||||
}
|
||||
while (!e.Contains(Event.ValvesSet));
|
||||
|
||||
|
||||
set_flow:
|
||||
|
||||
//------------------------------------------------
|
||||
Bridge.OnActivity(this, Strings.Setting_the_flow);
|
||||
//------------------------------------------------
|
||||
|
||||
@ -151,9 +151,8 @@ namespace TBF.Rig.TestMethods.FixedStartDeferredEval
|
||||
/// int refPulses = (int)(timeSec * (2000.0f * targetFlow / pOut.FlowMeter.NominalFlow));
|
||||
int totalPulses = (int)(test.Volume / LtrPerRefPulse + 0.5f);
|
||||
|
||||
///============================================================================================
|
||||
|
||||
//====================================
|
||||
loop:
|
||||
/// Read pressure and temperature once before calling Bridge.OnTestSelected(...)
|
||||
State.Create(string.Format("{0}({1}) : Measuring process data", test.Method, test.Name))
|
||||
.AddOperation(checkUiOp)
|
||||
@ -265,9 +264,6 @@ namespace TBF.Rig.TestMethods.FixedStartDeferredEval
|
||||
while (!e.Contains(Event.TimerExpired));
|
||||
}
|
||||
|
||||
|
||||
setting_flow:
|
||||
|
||||
//------------------------------------------------
|
||||
Bridge.OnActivity(this, Strings.Setting_the_flow);
|
||||
//------------------------------------------------
|
||||
@ -892,8 +888,6 @@ namespace TBF.Rig.TestMethods.FixedStartDeferredEval
|
||||
while (!e.Contains(Event.PreviousStopped));
|
||||
}
|
||||
|
||||
stopTestWOTransitionAfter:
|
||||
|
||||
return new List<Event> { retVal }; /// default 'retVal' value is Event.Done
|
||||
}
|
||||
|
||||
|
||||
@ -151,9 +151,8 @@ namespace TBF.Rig.TestMethods.FixedStartMassCollAdvanced
|
||||
/// int refPulses = (int)(timeSec * (2000.0f * targetFlow / pOut.FlowMeter.NominalFlow));
|
||||
int totalPulses = (int)(test.Volume / LtrPerRefPulse + 0.5f);
|
||||
|
||||
///============================================================================================
|
||||
|
||||
//====================================
|
||||
loop:
|
||||
/// Read pressure and temperature once before calling Bridge.OnTestSelected(...)
|
||||
State.Create(string.Format("{0}({1}) : Measuring process data", test.Method, test.Name))
|
||||
.AddOperation(checkUiOp)
|
||||
@ -1090,8 +1089,6 @@ namespace TBF.Rig.TestMethods.FixedStartMassCollAdvanced
|
||||
while (!e.Contains(Event.PreviousStopped));
|
||||
}
|
||||
|
||||
stopTestWOTransitionAfter:
|
||||
|
||||
return new List<Event> { retVal };
|
||||
}
|
||||
}
|
||||
|
||||
@ -176,8 +176,8 @@ namespace TBF.Rig.TestMethods.FixedStartMassCollDeferredEval
|
||||
int totalPulses = (int)(test.Volume / LtrPerRefPulse + 0.5f);
|
||||
|
||||
|
||||
//====================================
|
||||
loop:
|
||||
///============================================================================================
|
||||
|
||||
/// Read pressure and temperature once before calling Bridge.OnTestSelected(...)
|
||||
State.Create(string.Format("{0}({1}) : Measuring process data", test.Method, test.Name))
|
||||
.AddOperation(checkUiOp)
|
||||
@ -346,9 +346,6 @@ namespace TBF.Rig.TestMethods.FixedStartMassCollDeferredEval
|
||||
while (!e.Contains(Event.TimerExpired));
|
||||
}
|
||||
|
||||
|
||||
setting_flow:
|
||||
|
||||
//------------------------------------------------
|
||||
Bridge.OnActivity(this, Strings.Setting_the_flow);
|
||||
//------------------------------------------------
|
||||
@ -1011,8 +1008,6 @@ namespace TBF.Rig.TestMethods.FixedStartMassCollDeferredEval
|
||||
while (!e.Contains(Event.PreviousStopped));
|
||||
}
|
||||
|
||||
stopTestWOTransitionAfter:
|
||||
|
||||
return new List<Event> { retVal }; /// default 'retVal' value is Event.Done
|
||||
}
|
||||
|
||||
|
||||
@ -151,9 +151,8 @@ namespace TBF.Rig.TestMethods.FixedStartMassCollection
|
||||
/// int refPulses = (int)(timeSec * (2000.0f * targetFlow / pOut.FlowMeter.NominalFlow));
|
||||
int totalPulses = (int)(test.Volume / LtrPerRefPulse + 0.5f);
|
||||
|
||||
///============================================================================================
|
||||
|
||||
//====================================
|
||||
loop:
|
||||
/// Read pressure and temperature once before calling Bridge.OnTestSelected(...)
|
||||
State.Create(string.Format("{0}({1}) : Measuring process data", test.Method, test.Name))
|
||||
.AddOperation(checkUiOp)
|
||||
@ -323,9 +322,6 @@ namespace TBF.Rig.TestMethods.FixedStartMassCollection
|
||||
while (!e.Contains(Event.TimerExpired));
|
||||
}
|
||||
|
||||
|
||||
setting_flow:
|
||||
|
||||
//------------------------------------------------
|
||||
Bridge.OnActivity(this, Strings.Setting_the_flow);
|
||||
//------------------------------------------------
|
||||
@ -1236,8 +1232,6 @@ namespace TBF.Rig.TestMethods.FixedStartMassCollection
|
||||
while (!e.Contains(Event.PreviousStopped));
|
||||
}
|
||||
|
||||
stopTestWOTransitionAfter:
|
||||
|
||||
return new List<Event> { retVal };
|
||||
}
|
||||
}
|
||||
|
||||
@ -158,8 +158,8 @@ namespace TBF.Rig.TestMethods.FixedStartTankCollection
|
||||
|
||||
DoubleBox volumeBox = new DoubleBox();
|
||||
|
||||
//====================================
|
||||
loop:
|
||||
///============================================================================================
|
||||
|
||||
/// Read pressure and temperature once before calling Bridge.OnTestSelected(...)
|
||||
State.Create(string.Format("{0}({1}) : Measuring process data", test.Method, test.Name))
|
||||
.AddOperation(checkUiOp)
|
||||
@ -268,9 +268,6 @@ namespace TBF.Rig.TestMethods.FixedStartTankCollection
|
||||
while (!e.Contains(Event.TimerExpired));
|
||||
}
|
||||
|
||||
|
||||
setting_flow:
|
||||
|
||||
//------------------------------------------------
|
||||
Bridge.OnActivity(this, Strings.Setting_the_flow);
|
||||
//------------------------------------------------
|
||||
|
||||
@ -129,8 +129,8 @@ namespace TBF.Rig.TestMethods.FlowAdjustment
|
||||
LtrPerRefPulse = outPath.FlowMeter.LtrPerPulse; /// [ltr/pulse], nominal flow in [m3/h]
|
||||
int totalPulses = (int)(test.Volume / LtrPerRefPulse + 0.5f);
|
||||
|
||||
//====================================
|
||||
loop:
|
||||
///============================================================================================
|
||||
|
||||
/// Read pressure and temperature once before calling Bridge.OnTestSelected(...)
|
||||
State.Create(string.Format("{0}({1}) : Measuring process data", test.Method, test.Name))
|
||||
.AddOperation(checkUiOp)
|
||||
@ -416,8 +416,6 @@ namespace TBF.Rig.TestMethods.FlowAdjustment
|
||||
while (!e.Contains(Event.PreviousStopped));
|
||||
}
|
||||
|
||||
stopTestWOStoppingDivGateEtc:
|
||||
|
||||
return new List<Event> { retVal };
|
||||
}
|
||||
|
||||
|
||||
@ -129,8 +129,8 @@ namespace TBF.Rig.TestMethods.FlyingStart
|
||||
LtrPerRefPulse = outPath.FlowMeter.LtrPerPulse; /// [ltr/pulse], nominal flow in [m3/h]
|
||||
int totalPulses = (int)(test.Volume / LtrPerRefPulse + 0.5f);
|
||||
|
||||
//====================================
|
||||
loop:
|
||||
///============================================================================================
|
||||
|
||||
/// Read pressure and temperature once before calling Bridge.OnTestSelected(...)
|
||||
State.Create(string.Format("{0}({1}) : Measuring process data", test.Method, test.Name))
|
||||
.AddOperation(checkUiOp)
|
||||
@ -248,9 +248,6 @@ namespace TBF.Rig.TestMethods.FlyingStart
|
||||
while (!e.Contains(Event.TimerExpired));
|
||||
}
|
||||
|
||||
|
||||
setting_flow:
|
||||
|
||||
//------------------------------------------------
|
||||
Bridge.OnActivity(this, Strings.Setting_the_flow);
|
||||
//------------------------------------------------
|
||||
@ -740,8 +737,6 @@ namespace TBF.Rig.TestMethods.FlyingStart
|
||||
cBrd.Stop(false);
|
||||
}
|
||||
|
||||
stopTestWOStoppingDivGateEtc:
|
||||
|
||||
return new List<Event> { retVal };
|
||||
}
|
||||
|
||||
|
||||
@ -162,13 +162,12 @@ namespace TBF.Rig.TestMethods.FlyingStartFirstRepetWithMassColl
|
||||
: ((compoundTestParams != null) ? compoundTestParams.NextTestVolume
|
||||
: heatMetersTestParams.NextTestVolume);
|
||||
|
||||
//====================================
|
||||
loop:
|
||||
|
||||
/// 'totalPulses' calculation has to be inside test repetition loop for this method !!!
|
||||
LtrPerRefPulse = outPath.FlowMeter.LtrPerPulse;
|
||||
int totalPulses = (int)((repetitionNr == 1 ? test.Volume : nextTestVolume) / LtrPerRefPulse + 0.5f);
|
||||
|
||||
///============================================================================================
|
||||
|
||||
/// Read pressure and temperature once before calling Bridge.OnTestSelected(...)
|
||||
State.Create(string.Format("{0}({1}) : Measuring process data", test.Method, test.Name))
|
||||
.AddOperation(checkUiOp)
|
||||
@ -349,9 +348,6 @@ namespace TBF.Rig.TestMethods.FlyingStartFirstRepetWithMassColl
|
||||
while (!e.Contains(Event.TimerExpired));
|
||||
}
|
||||
|
||||
|
||||
setting_flow:
|
||||
|
||||
//------------------------------------------------
|
||||
Bridge.OnActivity(this, Strings.Setting_the_flow);
|
||||
//------------------------------------------------
|
||||
|
||||
@ -183,8 +183,8 @@ namespace TBF.Rig.TestMethods.FlyingStartMassCollComparative
|
||||
LtrPerRefPulse = outPath.FlowMeter.LtrPerPulse;
|
||||
int totalPulses = (int)(test.Volume / LtrPerRefPulse + 0.5f);
|
||||
|
||||
//====================================
|
||||
loop:
|
||||
///============================================================================================
|
||||
|
||||
/// Read pressure and temperature once before calling Bridge.OnTestSelected(...)
|
||||
State.Create(string.Format("{0}({1}) : Measuring process data", test.Method, test.Name))
|
||||
.AddOperation(checkUiOp)
|
||||
@ -363,9 +363,6 @@ namespace TBF.Rig.TestMethods.FlyingStartMassCollComparative
|
||||
while (!e.Contains(Event.TimerExpired));
|
||||
}
|
||||
|
||||
|
||||
setting_flow:
|
||||
|
||||
//------------------------------------------------
|
||||
Bridge.OnActivity(this, Strings.Setting_the_flow);
|
||||
//------------------------------------------------
|
||||
|
||||
@ -161,8 +161,8 @@ namespace TBF.Rig.TestMethods.FlyingStartMassCollProlonged
|
||||
int targetTotalPulses = (int)(test.Volume / LtrPerRefPulse + 0.5f);
|
||||
int targetMassPulses = (int)(volumeToTank / LtrPerRefPulse + 0.5f);
|
||||
|
||||
//====================================
|
||||
loop:
|
||||
///============================================================================================
|
||||
|
||||
/// Read pressure and temperature once before calling Bridge.OnTestSelected(...)
|
||||
State.Create(string.Format("{0}({1}) : Measuring process data", test.Method, test.Name))
|
||||
.AddOperation(checkUiOp)
|
||||
@ -341,9 +341,6 @@ namespace TBF.Rig.TestMethods.FlyingStartMassCollProlonged
|
||||
while (!e.Contains(Event.TimerExpired));
|
||||
}
|
||||
|
||||
|
||||
setting_flow:
|
||||
|
||||
//------------------------------------------------
|
||||
Bridge.OnActivity(this, Strings.Setting_the_flow);
|
||||
//------------------------------------------------
|
||||
@ -1021,8 +1018,6 @@ namespace TBF.Rig.TestMethods.FlyingStartMassCollProlonged
|
||||
cBrd.Stop(false);
|
||||
}
|
||||
|
||||
stopTestWOStoppingDivGateEtc:
|
||||
|
||||
return new List<Event> { retVal };
|
||||
}
|
||||
|
||||
|
||||
@ -157,8 +157,7 @@ namespace TBF.Rig.TestMethods.FlyingStartMassCollection
|
||||
LtrPerRefPulse = cBrd.Devices.FlowMeter.LtrPerPulse;
|
||||
int totalPulses = (int)(test.Volume / LtrPerRefPulse + 0.5f);
|
||||
|
||||
//====================================
|
||||
loop:
|
||||
///============================================================================================
|
||||
|
||||
/// Read pressure and temperature once before calling Bridge.OnTestSelected(...)
|
||||
State.Create(string.Format("{0}({1}) : Measuring process data", test.Method, test.Name))
|
||||
@ -338,9 +337,6 @@ namespace TBF.Rig.TestMethods.FlyingStartMassCollection
|
||||
while (!e.Contains(Event.TimerExpired));
|
||||
}
|
||||
|
||||
|
||||
setting_flow:
|
||||
|
||||
//------------------------------------------------
|
||||
Bridge.OnActivity(this, Strings.Setting_the_flow);
|
||||
//------------------------------------------------
|
||||
@ -1066,8 +1062,6 @@ namespace TBF.Rig.TestMethods.FlyingStartMassCollection
|
||||
cBrd.Stop(false);
|
||||
}
|
||||
|
||||
stopTestWOStoppingDivGateEtc:
|
||||
|
||||
return new List<Event> { retVal };
|
||||
}
|
||||
|
||||
|
||||
@ -167,8 +167,8 @@ namespace TBF.Rig.TestMethods.FlyingStartTankCollection
|
||||
|
||||
DoubleBox volumeBox = new DoubleBox();
|
||||
|
||||
//====================================
|
||||
loop:
|
||||
///============================================================================================
|
||||
|
||||
/// Read pressure and temperature once before calling Bridge.OnTestSelected(...)
|
||||
State.Create(string.Format("{0}({1}) : Measuring process data", test.Method, test.Name))
|
||||
.AddOperation(checkUiOp)
|
||||
@ -288,9 +288,6 @@ namespace TBF.Rig.TestMethods.FlyingStartTankCollection
|
||||
while (!e.Contains(Event.TimerExpired));
|
||||
}
|
||||
|
||||
|
||||
setting_flow:
|
||||
|
||||
//------------------------------------------------
|
||||
Bridge.OnActivity(this, Strings.Setting_the_flow);
|
||||
//------------------------------------------------
|
||||
|
||||
@ -29,8 +29,6 @@ namespace TBF.Rig.TestMethods.ManualEntry
|
||||
}
|
||||
}
|
||||
|
||||
string header;
|
||||
string[] commonItems;
|
||||
string[] testItems;
|
||||
|
||||
public ManualEntryCfgCtrl()
|
||||
|
||||
@ -189,12 +189,8 @@ namespace TBF.Rig.TestMethods.PMaxTest
|
||||
}
|
||||
while (e.Contains(Event.TimerBusy));
|
||||
|
||||
/// Measurement loop - end
|
||||
|
||||
test_completed:
|
||||
|
||||
/// Test completed
|
||||
StopRecordingStatistics();
|
||||
|
||||
TestEndTime = DateTime.Now;
|
||||
|
||||
//------------------------------------------------
|
||||
|
||||
@ -211,9 +211,6 @@ namespace TBF.Rig.TestMethods.PulsesTest
|
||||
while (!e.Contains(Event.TimerExpired));
|
||||
}
|
||||
|
||||
|
||||
setting_flow:
|
||||
|
||||
//------------------------------------------------
|
||||
Bridge.OnActivity(this, Strings.Setting_the_flow);
|
||||
//------------------------------------------------
|
||||
|
||||
@ -213,9 +213,6 @@ namespace TBF.Rig.TestMethods.PulsesTestManual
|
||||
while (!e.Contains(Event.TimerExpired));
|
||||
}
|
||||
|
||||
|
||||
setting_flow:
|
||||
|
||||
//------------------------------------------------
|
||||
Bridge.OnActivity(this, Strings.Setting_the_flow);
|
||||
//------------------------------------------------
|
||||
@ -513,8 +510,6 @@ namespace TBF.Rig.TestMethods.PulsesTestManual
|
||||
while (!e.Contains(Event.PreviousStopped));
|
||||
}
|
||||
|
||||
stopTestWOStoppingDivGateEtc:
|
||||
|
||||
return new List<Event> { retVal };
|
||||
}
|
||||
}
|
||||
|
||||
@ -138,9 +138,6 @@ namespace TBF.Rig.TestMethods.RoiDetection
|
||||
while (!e.Contains(Event.TimerExpired));
|
||||
}
|
||||
|
||||
|
||||
setting_flow:
|
||||
|
||||
//------------------------------------------------
|
||||
Bridge.OnActivity(this, Strings.Setting_the_flow);
|
||||
//------------------------------------------------
|
||||
|
||||
@ -120,10 +120,10 @@ namespace TBF.Rig.TestMethods.SensitivityTest
|
||||
/// float timeHr = volumeLtr / (1000.0f * targetFlow);
|
||||
/// float timeSec = 3600.0f * timeHr;
|
||||
/// int refPulses = (int)(timeSec * (2000.0f * targetFlow / pOut.FlowMeter.NominalFlow));
|
||||
int totalPulses = (int)(test.Volume / LtrPerRefPulse + 0.5f);
|
||||
int totalPulses = (int)(test.Volume / LtrPerRefPulse + 0.5f);
|
||||
|
||||
///============================================================================================
|
||||
|
||||
//====================================
|
||||
loop:
|
||||
/// Read pressure and temperature once before calling Bridge.OnTestSelected(...)
|
||||
State.Create(string.Format("{0}({1}) : Measuring process data", test.Method, test.Name))
|
||||
.AddOperation(checkUiOp)
|
||||
@ -590,8 +590,6 @@ namespace TBF.Rig.TestMethods.SensitivityTest
|
||||
while (!e.Contains(Event.PreviousStopped));
|
||||
}
|
||||
|
||||
stopTestWOStoppingDivGateEtc:
|
||||
|
||||
return new List<Event> { retVal };
|
||||
}
|
||||
}
|
||||
|
||||
@ -10,7 +10,7 @@ using TBF.Rig;
|
||||
|
||||
namespace TBF.Rig.TestMethods.iPerlCommunication
|
||||
{
|
||||
public class TestMethod : ComponentBase, GenericDevices.ISimultTestMethod, Generic.IDevice
|
||||
public class TestMethod : ComponentBase, GenericDevices.ISimultTestMethod
|
||||
{
|
||||
private static readonly ILog log = LogManager.GetLogger(typeof(TestMethod));
|
||||
protected static readonly ILog rfidDataLogger = LogManager.GetLogger("RfidData");
|
||||
@ -76,7 +76,7 @@ namespace TBF.Rig.TestMethods.iPerlCommunication
|
||||
}
|
||||
|
||||
/// IDevice interface - only Initialize() is used
|
||||
public void Initialize()
|
||||
public override void Initialize()
|
||||
{
|
||||
if (DebugLevel == DebugMode.Normal)
|
||||
{
|
||||
@ -113,14 +113,9 @@ namespace TBF.Rig.TestMethods.iPerlCommunication
|
||||
|
||||
rfidDataLogger.Fatal("------------------------------------------------------------------------");
|
||||
rfidDataLogger.FatalFormat("Test Bench Framework ver. {0}", Program.Version);
|
||||
log.FatalFormat("{0} - Device successfully initialized", Name);
|
||||
}
|
||||
|
||||
/// IDevice interface - only Initialize() is used
|
||||
public void RunDeviceBefore() { }
|
||||
public void RunDeviceAfter() { }
|
||||
public void StopDevice() { }
|
||||
public void StopDevice2() { }
|
||||
|
||||
public IList<Event> Execute(Test test, int repetNr, bool isLastRepetition)
|
||||
{
|
||||
return (new iPerlCommunicationSeq()).Execute(test, repetNr, testMethodCfg, testMethodCfg.TestParams);
|
||||
|
||||
@ -11,7 +11,7 @@ using TBF.Resources;
|
||||
|
||||
namespace TBF.Rig.Uni.FlowMeter
|
||||
{
|
||||
public class FlowMeter : ComponentBase, Generic.IDevice, GenericDevices.IFlowMeter, GenericDevices.IHasCalendarEvents, IDrawingItCmpntWithMeasuredVal
|
||||
public class FlowMeter : ComponentBase, GenericDevices.IFlowMeter, GenericDevices.IHasCalendarEvents, IDrawingItCmpntWithMeasuredVal
|
||||
{
|
||||
private static readonly ILog log = LogManager.GetLogger(typeof(FlowMeter));
|
||||
public override string ToString() { return string.Format("FlowMeter({0})", Cfg.ToString(-1)); }
|
||||
@ -103,10 +103,7 @@ namespace TBF.Rig.Uni.FlowMeter
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
///
|
||||
/// IDevice interface functions
|
||||
///
|
||||
public void Initialize()
|
||||
public override void Initialize()
|
||||
{
|
||||
for (int r = 0; r <= 5; r++)
|
||||
{
|
||||
@ -125,10 +122,6 @@ namespace TBF.Rig.Uni.FlowMeter
|
||||
|
||||
log.FatalFormat("Successfully initialized device {0}", Name);
|
||||
}
|
||||
public void RunDeviceBefore() { }
|
||||
public void RunDeviceAfter() { }
|
||||
public void StopDevice() { }
|
||||
public void StopDevice2() { }
|
||||
|
||||
///
|
||||
/// Calendar support
|
||||
|
||||
@ -40,7 +40,6 @@ namespace TBF.Rig.Uni.RegValve
|
||||
readonly int timeout;
|
||||
|
||||
/// Process values
|
||||
bool firstRun;
|
||||
int expireTime;
|
||||
bool positionReached;
|
||||
|
||||
@ -83,7 +82,6 @@ namespace TBF.Rig.Uni.RegValve
|
||||
/// <summary>Start this operation</summary>
|
||||
public void Start()
|
||||
{
|
||||
firstRun = true;
|
||||
positionReached = false;
|
||||
expireTime = StateMachine.Time + timeout;
|
||||
log.InfoFormat("Start(): {0} reqPosLo={1}%, reqPosHi={2}%", regV.Name, posLoPct.ToString("F1"), posHiPct.ToString("F1"));
|
||||
@ -105,8 +103,6 @@ namespace TBF.Rig.Uni.RegValve
|
||||
return Event.OpArgumentError;
|
||||
}
|
||||
|
||||
firstRun = false;
|
||||
|
||||
regV.MoveToPosition(false, posLoPct, posHiPct);
|
||||
opState = OpState.CheckState;
|
||||
return Event.None;
|
||||
@ -157,8 +153,6 @@ namespace TBF.Rig.Uni.RegValve
|
||||
}
|
||||
|
||||
/// <summary>Stop this operation</summary>
|
||||
public void Stop()
|
||||
{
|
||||
}
|
||||
public void Stop() { }
|
||||
}
|
||||
}
|
||||
|
||||
@ -37,7 +37,6 @@ namespace TBF.Rig.Uni.RegValveAnalog
|
||||
readonly int timeout;
|
||||
|
||||
/// Process values
|
||||
bool firstRun;
|
||||
int expireTime;
|
||||
bool positionReached;
|
||||
|
||||
@ -78,7 +77,6 @@ namespace TBF.Rig.Uni.RegValveAnalog
|
||||
/// <summary>Start this operation</summary>
|
||||
public void Start()
|
||||
{
|
||||
firstRun = true;
|
||||
positionReached = false;
|
||||
expireTime = StateMachine.Time + timeout;
|
||||
log.InfoFormat("Start(): RV#={0}, reqPosLo={1}%, reqPosHi={2}%", regValve.Idx1, posLoPct.ToString("F1"), posHiPct.ToString("F1"));
|
||||
@ -100,8 +98,6 @@ namespace TBF.Rig.Uni.RegValveAnalog
|
||||
return Event.OpArgumentError;
|
||||
}
|
||||
|
||||
firstRun = false;
|
||||
|
||||
uniCB.RegVlvMoveToPos(false, regValve.Idx1, posLoPct, posHiPct);
|
||||
opState = OpState.CheckState;
|
||||
return Event.None;
|
||||
@ -154,8 +150,6 @@ namespace TBF.Rig.Uni.RegValveAnalog
|
||||
}
|
||||
|
||||
/// <summary>Stop this operation</summary>
|
||||
public void Stop()
|
||||
{
|
||||
}
|
||||
public void Stop() { }
|
||||
}
|
||||
}
|
||||
|
||||
@ -84,7 +84,7 @@ namespace TBF.Rig.Various.CoverTest
|
||||
{
|
||||
CloseThisFormHandler(sender, null);
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
@ -5,15 +5,13 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using log4net;
|
||||
using TBF.Boxes;
|
||||
using TBF.Rig.Generic;
|
||||
using TBF.Rig.GenericDevices;
|
||||
|
||||
namespace TBF.Rig.Various.TankWithLevelMsrmnt
|
||||
{
|
||||
public class Tank : TBF.Rig.MettlerToledo.TankDraining, IDevice, IScaleOrTank, IVolumeMeter, IOperation
|
||||
public class Tank : TBF.Rig.MettlerToledo.TankDraining, IScaleOrTank, IVolumeMeter, IOperation
|
||||
{
|
||||
/// <summary>
|
||||
/// Info: StartMassMeasurement() and "Balnce response = .., Mass = ..."
|
||||
@ -68,7 +66,7 @@ namespace TBF.Rig.Various.TankWithLevelMsrmnt
|
||||
///
|
||||
/// IDevice interface (required to call base and initialize 'DrainValve')
|
||||
///
|
||||
public void Initialize()
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initalize();
|
||||
|
||||
@ -83,10 +81,6 @@ namespace TBF.Rig.Various.TankWithLevelMsrmnt
|
||||
|
||||
useCalibTable = LoadCalibrationTable(tankCfg.CalibrationTable);
|
||||
}
|
||||
public void RunDeviceBefore() { }
|
||||
public void RunDeviceAfter() { }
|
||||
public void StopDevice() { }
|
||||
public void StopDevice2() { }
|
||||
|
||||
|
||||
public override bool IsEmpty()
|
||||
|
||||
@ -34,7 +34,6 @@ namespace TBF.UI.Bench.EditSchDrawing
|
||||
}
|
||||
|
||||
bool unlocked;
|
||||
Config.Entities.CfgUpdateFlags flags; /// Or-ed from particular Flags from ComponentParametersDlg
|
||||
ISession session;
|
||||
IList<Config.Entities.Component> cmpntEntities;
|
||||
TBF.Rig.Various.Drawing.Pipes.Configuration pipesScfg;
|
||||
@ -48,7 +47,6 @@ namespace TBF.UI.Bench.EditSchDrawing
|
||||
{
|
||||
InitializeComponent();
|
||||
Controls.Add(new TextBox() { Visible = false });
|
||||
flags = Config.Entities.CfgUpdateFlags.None;
|
||||
selectComponentTypeDlg = new SelectComponentClassDlg("Various.Drawing.");
|
||||
sharedButtons.RequiredGroupMembership = new Users.Entities.GID[] { Users.Entities.GID.Administrators };
|
||||
sharedButtons.OptionalButtons = SharedButtons.Buttons.Add;
|
||||
|
||||
@ -55,6 +55,29 @@ namespace TBF.UI.Bench.Paths
|
||||
this.parent = parent;
|
||||
this.parentControl = parentControl;
|
||||
|
||||
IList<ITempMeter> tempMeters = new List<ITempMeter>();
|
||||
foreach (var cmpnt in parent.TbfComponents)
|
||||
{
|
||||
if (cmpnt is ITempMeter) tempMeters.Add(cmpnt as ITempMeter);
|
||||
}
|
||||
|
||||
editors = new Control[fixedColumnsCount];
|
||||
///
|
||||
for (int i = 0; i < (int)Column.TMRefW1; i++)
|
||||
{
|
||||
editors[i] = new TextBox(); /// Name
|
||||
editors[i].Visible = false;
|
||||
parent.Controls.Add(editors[i]);
|
||||
}
|
||||
for (int i = (int)Column.TMRefW1; i < editors.Length; i++)
|
||||
{
|
||||
editors[i] = new ComboBox();
|
||||
(editors[i] as ComboBox).Items.Add("---");
|
||||
foreach (var t in tempMeters) (editors[i] as ComboBox).Items.Add(t.Name);
|
||||
editors[i].Visible = false;
|
||||
parent.Controls.Add(editors[i]);
|
||||
}
|
||||
|
||||
#if HEAT_METERS
|
||||
/// Load the paths
|
||||
MyItems = parent.Session.QueryOver<Config.Entities.HeatMetersPath>()
|
||||
@ -67,12 +90,6 @@ namespace TBF.UI.Bench.Paths
|
||||
SubItemRightClicked += new SubItemEventHandler(listViewEx_SubItemRightClicked);
|
||||
SubItemEndEditing += new SubItemEndEditingEventHandler(listViewEx_SubItemEndEditing);
|
||||
|
||||
IList<ITempMeter> tempMeters = new List<ITempMeter>();
|
||||
foreach (var cmpnt in parent.TbfComponents)
|
||||
{
|
||||
if (cmpnt is ITempMeter) tempMeters.Add(cmpnt as ITempMeter);
|
||||
}
|
||||
|
||||
/// ListViewEx columns
|
||||
TBF.LocalSettings ls = Program.LocalSettings;
|
||||
Columns.Add(Strings.Name, (ls.HeatMetersColumnCount > 0) ? ls.HeatMetersColumnWidths[0] : 60 * parent.Dpi / Constants.Dpi100pct);
|
||||
@ -101,23 +118,6 @@ namespace TBF.UI.Bench.Paths
|
||||
}
|
||||
}
|
||||
|
||||
editors = new Control[fixedColumnsCount];
|
||||
///
|
||||
for (int i = 0; i < (int)Column.TMRefW1; i++)
|
||||
{
|
||||
editors[i] = new TextBox(); /// Name
|
||||
editors[i].Visible = false;
|
||||
parent.Controls.Add(editors[i]);
|
||||
}
|
||||
for (int i = (int)Column.TMRefW1; i < editors.Length; i++)
|
||||
{
|
||||
editors[i] = new ComboBox();
|
||||
(editors[i] as ComboBox).Items.Add("---");
|
||||
foreach (var t in tempMeters) (editors[i] as ComboBox).Items.Add(t.Name);
|
||||
editors[i].Visible = false;
|
||||
parent.Controls.Add(editors[i]);
|
||||
}
|
||||
|
||||
base.RedrawAll();
|
||||
#endif
|
||||
}
|
||||
|
||||
@ -1050,9 +1050,9 @@ namespace TBF.UI.Calendar
|
||||
if ((!ev.Hidden || _showHiddenEvents) && Config.CalendarEvent.Utils.DayMatchesExactly(ev, dt))
|
||||
{
|
||||
/// Determine event background color
|
||||
int alpha = 255;
|
||||
if (ev.Hidden && _dimDisabledEvents)
|
||||
alpha = 64;
|
||||
//int alpha = 255;
|
||||
//if (ev.Hidden && _dimDisabledEvents)
|
||||
// alpha = 64;
|
||||
Color alphaColor = Color.FromArgb(ev.BackColor);
|
||||
|
||||
/// Determine event text position
|
||||
|
||||
@ -133,7 +133,7 @@ namespace TBF.UI
|
||||
var session = Config.FluentCommon.CreateSession(Users.Entities.DBKind.Config);
|
||||
cmptnEntities = session.QueryOver<Config.Entities.Component>().OrderBy(x => x.ItemNr).Asc.List();
|
||||
}
|
||||
catch (Exception exc)
|
||||
catch (Exception)
|
||||
{
|
||||
MessageBox.Show(Strings.Failed_to_load_components, Strings.Error, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
|
||||
cmptnEntities = new List<Config.Entities.Component>();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user