inizio fix warnings vari

This commit is contained in:
Samuele E. Locatelli
2018-01-17 11:11:34 +01:00
parent 12f06119e7
commit 596b75ce8d
+16 -10
View File
@@ -558,25 +558,31 @@ namespace MTC_Adapter
dataRefList = baseElem.dataRefList;
try
{
mAxType = new Event(dataRefList[0].Key);
mAxType.Value = dataRefList[0].Value;
mAxType = new Event(dataRefList[0].Key)
{
Value = dataRefList[0].Value
};
}
catch
{
mAxType = new Event(string.Format("{0}_Type", ident));
mAxType.Value = "LINEAR";
mAxType = new Event(string.Format("{0}_Type", ident))
{
Value = "LINEAR"
};
}
try
{
mAxGrp = new Event(dataRefList[1].Key);
mAxGrp.Value = dataRefList[1].Value;
mAxGrp = new Event(dataRefList[1].Key)
{
Value = dataRefList[1].Value
};
}
catch
{
mAxGrp = new Event(string.Format("{0}_Grp", ident));
mAxGrp.Value = "00";
mAxGrp = new Event(string.Format("{0}_Grp", ident))
{
Value = "00"
};
}
// valori standard
mAxDescr = new Event(string.Format("{0}_Descr", ident));