| | |
| | | /// </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) =>
|
| | | {
|
| | | //点击后,清空状态
|
| | |
| | | //刷新状态
|
| | | this.RefreshStatu();
|
| | | }
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 刷新状态(也就是如果数据有更新的话,会显示红色角标)
|
| | | /// </summary>
|
| | | public void RefreshStatu()
|
| | | {
|
| | | //如果住宅为虚拟住宅,则此功能无效
|
| | | if (Common.Config.Instance.Home.IsVirtually == true)
|
| | | {
|
| | | return;
|
| | | }
|
| | |
|
| | | if (ControlCommonResourse.HadNewMessage == true)
|
| | | {
|
| | | //如果已经有新消息过来了,就不用读了
|