黄学彪
2020-04-28 e22fdb94322e6cec38e5e4a9aec13d431a133fde
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/NormalControls/MessageManagementControl.cs
@@ -14,10 +14,14 @@
        /// </summary>
        public MessageManagementControl()
        {
            this.Height = Application.GetMinRealAverage(69);
            this.Width = Application.GetMinRealAverage(69);
            this.Height = this.GetPictrueRealSize(69);
            this.Width = this.GetPictrueRealSize(69);
            this.UnSelectedImagePath = "Item/MessageManagement.png";
            this.SelectedImagePath = "Item/MessageManagementSelected.png";
            //如果住宅为虚拟住宅,则此功能无效
            if (Common.Config.Instance.Home.IsVirtually == false)
            {
            this.ButtonClickEvent += (sender, e) =>
            {
                //点击后,清空状态
@@ -32,12 +36,19 @@
            //刷新状态
            this.RefreshStatu();
        }
        }
        /// <summary>
        /// 刷新状态(也就是如果数据有更新的话,会显示红色角标)
        /// </summary>
        public void RefreshStatu()
        {
            //如果住宅为虚拟住宅,则此功能无效
            if (Common.Config.Instance.Home.IsVirtually == true)
            {
                return;
            }
            if (ControlCommonResourse.HadNewMessage == true)
            {
                //如果已经有新消息过来了,就不用读了