DataEntry.Standard: Exclamation mark displayed when entering the end-state and volume is out of limit.

This commit is contained in:
Milan Hanajik
2015-04-29 19:03:00 +02:00
parent eb7acef8ae
commit e124f3f406
6 changed files with 209 additions and 15 deletions
@@ -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();
}