Various bug fixe, ValveMove to flow repeted 1x, version 1.4.42

This commit is contained in:
Milan Hanajik
2015-05-21 16:39:18 +02:00
parent e94b4f2655
commit d2b76cc58d
4 changed files with 33 additions and 8 deletions
@@ -196,8 +196,10 @@ namespace TBF.BenchControl.DataEntry.Standard24
else if (currentOp == CurrentOp.ShowFormAtCycleEnd)
{
CycleEndForm dlg = (modelessDlg as CycleEndForm);
int count = waterMeters.Count;
if ((dlg != null) && (count > dlg.WaterMetersCount)) count = dlg.WaterMetersCount;
for (int i = 0; i < Math.Min(dlg.WaterMetersCount, waterMeters.Count); i++)
for (int i = 0; i < count; i++)
{
if (waterMeters[i] != null)
{