浏览代码

修改报警消息

LC 2 月之前
父节点
当前提交
949d5028e4
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5 2
      MainWindow.xaml.cs

+ 5 - 2
MainWindow.xaml.cs

@@ -9,7 +9,6 @@ using SWRIS.Models.ViewModel;
 using SWRIS.Pages;
 using SWRIS.Repository;
 using System;
-using System.Collections.Generic;
 using System.ComponentModel;
 using System.IO;
 using System.Linq;
@@ -233,7 +232,11 @@ namespace SWRIS
                 }
                 foreach (var fault in equipmentData.Faults)
                 {
-                    equipmentData.Messages.Add(fault.ToString());
+                    if (fault.Value != null)
+                    {
+                        equipmentData.Messages.Add(fault.Value.ToString());
+                    }
+
                 }
             }
         }