TBF.UI.Process.ProcessTabPageCtrl introduced, etc.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
/// Copyright (c) 2013-2015 Sensus Metering Systems
|
||||
///
|
||||
using System;
|
||||
using Config.Entities;
|
||||
|
||||
namespace TBF.UiBridge
|
||||
{
|
||||
@@ -12,7 +13,7 @@ namespace TBF.UiBridge
|
||||
public int Repeats;
|
||||
public int RepetitionNr;
|
||||
|
||||
public Config.Entities.Progress Phase;
|
||||
public Progress Phase;
|
||||
public int Progress; /// value in the range 0..100
|
||||
public float OveralProgress;
|
||||
|
||||
@@ -22,7 +23,7 @@ namespace TBF.UiBridge
|
||||
static int[] estimatedTime; /// Estimated time of each phase to calculate the progress [s]
|
||||
static int[] cumulativeSumsOfEstimates;
|
||||
static int currentPhaseStartTime;
|
||||
static Config.Entities.Progress currentPhase;
|
||||
static Progress currentPhase;
|
||||
|
||||
|
||||
static TestProgressEventArgs()
|
||||
@@ -58,7 +59,7 @@ namespace TBF.UiBridge
|
||||
/// and calculates 'Progress'.
|
||||
/// </summary>
|
||||
/// <param name="progress"></param>
|
||||
private TestProgressEventArgs(Config.Entities.Progress phase)
|
||||
private TestProgressEventArgs(Progress phase)
|
||||
{
|
||||
if (phase != currentPhase)
|
||||
{
|
||||
@@ -81,7 +82,7 @@ namespace TBF.UiBridge
|
||||
|
||||
#endregion
|
||||
|
||||
public TestProgressEventArgs(Config.Entities.Test test, int repetitionNr, Config.Entities.Progress progress)
|
||||
public TestProgressEventArgs(Config.Entities.Test test, int repetitionNr, Progress progress)
|
||||
: this(progress)
|
||||
{
|
||||
TestName = Results.Utils.GetTestName(test.Name, test.Repeats, repetitionNr);
|
||||
@@ -90,7 +91,7 @@ namespace TBF.UiBridge
|
||||
RepetitionNr = repetitionNr;
|
||||
}
|
||||
|
||||
public TestProgressEventArgs(Config.Entities.Test test, Config.Entities.Progress progress)
|
||||
public TestProgressEventArgs(Test test, Progress progress)
|
||||
: this(test, 1, progress)
|
||||
{
|
||||
}
|
||||
@@ -111,7 +112,7 @@ namespace TBF.UiBridge
|
||||
/// <summary>
|
||||
/// Used by iPearl communication dialog
|
||||
/// </summary>
|
||||
public TestProgressEventArgs(string testName, Config.Entities.Progress progress)
|
||||
public TestProgressEventArgs(string testName, Progress progress)
|
||||
: this(progress)
|
||||
{
|
||||
TestName = testName;
|
||||
|
||||
Reference in New Issue
Block a user