From 18b93d511dc764b469d7c4a7e755f7274f89cdb4 Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期一, 27 四月 2020 17:55:14 +0800 Subject: [PATCH] 2020-4-27-1 --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/MessageManagementControl.cs | 35 +++++++++++++++++++++++------------ 1 files changed, 23 insertions(+), 12 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/MessageManagementControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/MessageManagementControl.cs index 2a7151f..9a3bc20 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/MessageManagementControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/MessageManagementControl.cs @@ -18,19 +18,24 @@ this.Width = Application.GetMinRealAverage(69); this.UnSelectedImagePath = "Item/MessageManagement.png"; this.SelectedImagePath = "Item/MessageManagementSelected.png"; - this.ButtonClickEvent += (sender, e) => - { - //鐐瑰嚮鍚�,娓呯┖鐘舵�� - this.IsSelected = false; - ControlCommonResourse.HadNewMessage = false; - var form = new UserMain.MessageManagementForm(); - form.AddForm(); - }; - //娣诲姞缂撳瓨 - ControlCommonResourse.listMessageManaContr.Add(this); - //鍒锋柊鐘舵�� - this.RefreshStatu(); + //濡傛灉浣忓畢涓鸿櫄鎷熶綇瀹�,鍒欐鍔熻兘鏃犳晥 + if (Common.Config.Instance.Home.IsVirtually == false) + { + this.ButtonClickEvent += (sender, e) => + { + //鐐瑰嚮鍚�,娓呯┖鐘舵�� + this.IsSelected = false; + ControlCommonResourse.HadNewMessage = false; + + var form = new UserMain.MessageManagementForm(); + form.AddForm(); + }; + //娣诲姞缂撳瓨 + ControlCommonResourse.listMessageManaContr.Add(this); + //鍒锋柊鐘舵�� + this.RefreshStatu(); + } } /// <summary> @@ -38,6 +43,12 @@ /// </summary> public void RefreshStatu() { + //濡傛灉浣忓畢涓鸿櫄鎷熶綇瀹�,鍒欐鍔熻兘鏃犳晥 + if (Common.Config.Instance.Home.IsVirtually == true) + { + return; + } + if (ControlCommonResourse.HadNewMessage == true) { //濡傛灉宸茬粡鏈夋柊娑堟伅杩囨潵浜�,灏变笉鐢ㄨ浜� -- Gitblit v1.8.0