DataEntry.Standard: Exclamation mark displayed when entering the end-state and volume is out of limit.
This commit is contained in:
@@ -42,6 +42,10 @@ namespace TBF.BenchControl.DataEntry.Standard
|
||||
|
||||
System.Windows.Forms.Form modelessDlg;
|
||||
|
||||
float refVolume;
|
||||
float errLimLo;
|
||||
float errLimHi;
|
||||
|
||||
bool resultSaved; /// Set in Run() when results are saved
|
||||
|
||||
IList<IWaterMeter> waterMeters; /// Passesd as an argument of ShowCycleBeginFormOp/ShowCycleEndFormOp constructor
|
||||
@@ -100,10 +104,13 @@ namespace TBF.BenchControl.DataEntry.Standard
|
||||
}
|
||||
|
||||
/// <returns>Reference to the operation</returns>
|
||||
public IOperation ShowTestEndFormOp()
|
||||
public IOperation ShowTestEndFormOp(float refVolume, float errLimLo, float errLimHi)
|
||||
{
|
||||
if (currentOp != CurrentOp.None) throw new Exception("Sequence error");
|
||||
currentOp = CurrentOp.EnterTestEndStates;
|
||||
this.refVolume = refVolume;
|
||||
this.errLimLo = errLimLo;
|
||||
this.errLimHi = errLimHi;
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -129,7 +136,7 @@ namespace TBF.BenchControl.DataEntry.Standard
|
||||
///
|
||||
void OpenTestEndStatesDlg(EntryForm myRef)
|
||||
{
|
||||
myRef.modelessDlg = new TestStartEndForm(Program.WMsCount, wmStartStateStr, disabled);
|
||||
myRef.modelessDlg = new TestStartEndForm(Program.WMsCount, wmStartStateStr, disabled, refVolume, errLimLo, errLimHi);
|
||||
modelessDlg.Show();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user