Fixed bugs:
- when there is a configuration error in a test and Data entry form for s/n-s was not closed yet - when showing results with a combination of different tests
This commit is contained in:
@@ -347,9 +347,10 @@ namespace TBF.Screens
|
||||
{
|
||||
foreach (var tr in trs)
|
||||
{
|
||||
string str = (!item.CanPrintCombined || tr == null) ? string.Empty : item.PrintCombined(tr.Meters[2 * mtr - 2],
|
||||
tr.Meters[2 * mtr - 1],
|
||||
tr.CombinedMeters[mtr - 1]);
|
||||
string str = (!item.CanPrintCombined || (tr == null) || (2 * mtr > tr.Meters.Count) || (mtr > tr.CombinedMeters.Count))
|
||||
? string.Empty : item.PrintCombined(tr.Meters[2 * mtr - 2],
|
||||
tr.Meters[2 * mtr - 1],
|
||||
tr.CombinedMeters[mtr - 1]);
|
||||
string[] texts = str.Split(new char[] { '|' });
|
||||
if (texts.Length == 1)
|
||||
{
|
||||
@@ -372,7 +373,7 @@ namespace TBF.Screens
|
||||
{
|
||||
foreach (var tr in trs)
|
||||
{
|
||||
string str = (!item.CanPrintSingle || tr == null) ? string.Empty : item.Print(tr.Meters[mtr - 1]);
|
||||
string str = (!item.CanPrintSingle || (tr == null) || (mtr > tr.Meters.Count)) ? string.Empty : item.Print(tr.Meters[mtr - 1]);
|
||||
|
||||
string[] texts = str.Split(new char[] { '|' });
|
||||
if (texts.Length == 1)
|
||||
|
||||
Reference in New Issue
Block a user