From 28d269d8aa90eca5470fff825a9b9545135a3ec0 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期三, 16 十二月 2020 17:37:26 +0800
Subject: [PATCH] 上传一个初始版本
---
HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs | 27 +++++++++++++++++++++++++--
1 files changed, 25 insertions(+), 2 deletions(-)
diff --git a/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs b/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs
index 18e95f8..005478a 100644
--- a/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs
+++ b/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs
@@ -67,7 +67,7 @@
}
string msg = function.name + Language.StringByID(StringId.CollectionCancelled);
LoadDeviceFunctionControlZone();
- function.SaveFunctionData();
+ function.SaveFunctionData(true);
new PublicAssmebly().TipMsgAutoClose(msg, true);
};
}
@@ -81,7 +81,7 @@
scene.collect = false;
string msg = scene.name + Language.StringByID(StringId.CollectionCancelled);
LoadSceneFunctionControlZone();
- scene.SaveSceneData();
+ scene.CollectScene();
new PublicAssmebly().TipMsgAutoClose(msg, true);
};
}
@@ -282,6 +282,7 @@
//鎴块棿鍒犻櫎浜嬩欢
Action backAction = () => {
+ RegisterGetPushMessageAction();
GetUnreadPushMessages();
};
@@ -411,6 +412,28 @@
}
}
+ /// <summary>
+ /// 娉ㄥ唽鏀跺埌鎺ㄩ�佺洃鍚�
+ /// </summary>
+ void RegisterGetPushMessageAction()
+ {
+ //HDLCommon.GetPushMessageAction = () => {
+ // if (bodyView != null)
+ // {
+ // Utlis.WriteLine("GetPushMessageAction H鏀跺埌鎺ㄩ��");
+ // GetUnreadPushMessages();
+ // }
+ //};
+ }
+
+ /// <summary>
+ /// 鍙栨秷鏀跺埌鎺ㄩ�佺洃鍚�
+ /// </summary>
+ void UnregisterGetPushMessageAction()
+ {
+ //HDLCommon.GetPushMessageAction = null;
+ }
+
#endregion
}
--
Gitblit v1.8.0