aggiunto display lubro

This commit is contained in:
Samuele E. Locatelli
2017-04-21 00:09:53 +02:00
parent 1f44b4324a
commit f5ed7aae03
+13 -9
View File
@@ -2464,7 +2464,7 @@ namespace MTC_Adapter
}
// ...aggiorno valore riferimento...
currVacActCount[i] = istVacActCount[i];
outString += string.Format("{0} | ", vettVacPump[i].mVacPumpWrkTime.Value);
outString += string.Format("{0} | ", vettVacAct[i].mVacActCount.Value);
}
// salvo su maschera...
parentForm.dataMonitor += string.Format("{0}{1}", outString.Substring(0, outString.Length - 3), Environment.NewLine);
@@ -2477,23 +2477,27 @@ namespace MTC_Adapter
/// <returns></returns>
public bool procLubro(bool needSave)
{
uint delta = 0;
string outString = string.Format("Lubro_[1-{0}]_Count: ", currAdpConf.nLubro);
for (int i = 0; i < currAdpConf.nLubro; i++)
{
uint delta = 0;
// controllo valore riferimento...
if (istLubroCount[i] > currLubroCount[i])
{
delta = istLubroCount[i] - currLubroCount[i];
// segnalo necessità salvataggio!
needSave = true;
}
delta = istLubroCount[i] - currLubroCount[i];
//processo comunque sempre...
uint contTot = updateValUIntByIncr(i, delta, "Lubro_{0:00}_Count");
// passo valore totale all'adapter
vettLubro[i].mLubroNum.Value = contTot;
// controllo valore riferimento...
if (delta > 0)
{
// segnalo necessità salvataggio!
needSave = true;
}
// ...aggiorno valore riferimento...
currLubroCount[i] = istLubroCount[i];
outString += string.Format("{0} | ", vettLubro[i].mLubroNum.Value);
}
// salvo su maschera...
parentForm.dataMonitor += string.Format("{0}{1}", outString.Substring(0, outString.Length - 3), Environment.NewLine);
return needSave;
}