|
@@ -102,7 +102,7 @@ namespace FurnaceUI.Models.Maintenances.IO1
|
|
{
|
|
{
|
|
base.InvokeAfterUpdateProperty(data);
|
|
base.InvokeAfterUpdateProperty(data);
|
|
|
|
|
|
- if (data[_aiKey] != null)
|
|
|
|
|
|
+ if (data.ContainsKey(_aiKey)&&data[_aiKey] != null)
|
|
{
|
|
{
|
|
List<NotifiableIoItem> lstData = (List<NotifiableIoItem>)data[_aiKey];
|
|
List<NotifiableIoItem> lstData = (List<NotifiableIoItem>)data[_aiKey];
|
|
Dictionary<string, float> dicValues = new Dictionary<string, float>();
|
|
Dictionary<string, float> dicValues = new Dictionary<string, float>();
|
|
@@ -118,7 +118,7 @@ namespace FurnaceUI.Models.Maintenances.IO1
|
|
item.Value = dicValues[item.Name];
|
|
item.Value = dicValues[item.Name];
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if (data[_aoKey] != null)
|
|
|
|
|
|
+ if (data.ContainsKey(_aoKey) && data[_aoKey] != null)
|
|
{
|
|
{
|
|
List<NotifiableIoItem> lstData = (List<NotifiableIoItem>)data[_aoKey];
|
|
List<NotifiableIoItem> lstData = (List<NotifiableIoItem>)data[_aoKey];
|
|
Dictionary<string, float> dicValues = new Dictionary<string, float>();
|
|
Dictionary<string, float> dicValues = new Dictionary<string, float>();
|
|
@@ -135,7 +135,7 @@ namespace FurnaceUI.Models.Maintenances.IO1
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- if (data[_diKey] != null)
|
|
|
|
|
|
+ if (data.ContainsKey(_diKey) && data[_diKey] != null)
|
|
{
|
|
{
|
|
List<NotifiableIoItem> lstData = (List<NotifiableIoItem>)data[_diKey];
|
|
List<NotifiableIoItem> lstData = (List<NotifiableIoItem>)data[_diKey];
|
|
Dictionary<string, bool> dicValues = new Dictionary<string, bool>();
|
|
Dictionary<string, bool> dicValues = new Dictionary<string, bool>();
|
|
@@ -151,7 +151,7 @@ namespace FurnaceUI.Models.Maintenances.IO1
|
|
item.Value = dicValues[item.Name];
|
|
item.Value = dicValues[item.Name];
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if (data[_doKey] != null)
|
|
|
|
|
|
+ if (data.ContainsKey(_doKey) && data[_doKey] != null)
|
|
{
|
|
{
|
|
List<NotifiableIoItem> lstData = (List<NotifiableIoItem>)data[_doKey];
|
|
List<NotifiableIoItem> lstData = (List<NotifiableIoItem>)data[_doKey];
|
|
Dictionary<string, bool> dicValues = new Dictionary<string, bool>();
|
|
Dictionary<string, bool> dicValues = new Dictionary<string, bool>();
|