From 002e48d8baa60c8d38ba95d65cd73118ab8cdb09 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期五, 14 七月 2023 10:54:33 +0800
Subject: [PATCH] 设备状态刷新

---
 HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs |   19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs b/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs
index 5c82a1c..fbadb7f 100644
--- a/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs
+++ b/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs
@@ -269,9 +269,15 @@
         {
             Application.RunOnMainThread(() =>
             {
-                if (bodyView != null)
+                try
                 {
-                    bodyView.CheckLinkStatus();
+                    if (bodyView != null)
+                    {
+                        bodyView.CheckLinkStatus();
+                    }
+                }catch(Exception ex)
+                {
+                    MainPage.Log($"LoadEvent_CheckLinkStatus : {ex.Message}");
                 }
             });
         }
@@ -321,6 +327,7 @@
         {
             btnChangeFunction.MouseUpEventHandler = (sender, e) =>
             {
+                
                 btnChangeFunction.IsSelected = true;
                 btnChangeFunction.TextSize = CSS.CSS_FontSize.HeadlineFontSize;
                 btnChangeFunction.IsBold = true;
@@ -818,6 +825,10 @@
         /// </summary>
         void GetUnreadPushMessages()
         {
+            if (MainPage.NoLoginMode)
+            {
+                return;
+            }
             System.Threading.Tasks.Task.Run(() =>
             {
                 try
@@ -922,6 +933,10 @@
         /// </summary>
         void RegisterGetPushMessageAction()
         {
+            if (MainPage.NoLoginMode)
+            {
+                return;
+            }
             Action RegisterGetPushMessageAction = () => {
                 if (bodyView != null)
                 {

--
Gitblit v1.8.0