From fc699f356f0e846b4ccddf24a663e383d8814706 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Tue, 2 May 2017 15:49:48 +0200 Subject: [PATCH] fix visualizzazione prima colonna (con MST sovrascriveva area gialla...) --- MTC_Adapter/MTC_Adapter/AdapterGeneric.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/MTC_Adapter/MTC_Adapter/AdapterGeneric.cs b/MTC_Adapter/MTC_Adapter/AdapterGeneric.cs index a368075..51603f5 100644 --- a/MTC_Adapter/MTC_Adapter/AdapterGeneric.cs +++ b/MTC_Adapter/MTC_Adapter/AdapterGeneric.cs @@ -2339,10 +2339,16 @@ namespace MTC_Adapter { // aggiungo dettaglio valori ultimi codici MST StringBuilder sb = new StringBuilder(); + string codM = ""; + string codS = ""; + string codT = ""; for (int i = 0; i < currAdpConf.nPath; i++) { + codM = vettPath[i].mPathCodM.Value.ToString().Replace("UNAVAILABLE", "n.d."); + codS = vettPath[i].mPathCodS.Value.ToString().Replace("UNAVAILABLE", "n.d."); + codT = vettPath[i].mPathCodT.Value.ToString().Replace("UNAVAILABLE", "n.d."); // accodo ultimi codici in visualizzazione... - sb.AppendLine(string.Format("P{0} last MST: {1} | {2} | {3}", i + 1, vettPath[i].mPathCodM.Value, vettPath[i].mPathCodS.Value, vettPath[i].mPathCodT.Value)); + sb.AppendLine(string.Format("P{0} last MST: {1} | {2} | {3}", i + 1, codM, codS, codT)); } parentForm.dataMonitor_1 += sb.ToString();