黄学彪
2019-11-18 16604a593202f2f87adf71abd57d036fe7da3b52
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System;
using System.Collections.Generic;
using System.Text;
 
namespace Shared.Phone.UserCenter
{
    /// <summary>
    /// 消息中心控件
    /// </summary>
    public class MessageManagementControl : ButtonBase
    {
        /// <summary>
        /// 消息中心控件
        /// </summary>
        public MessageManagementControl()
        {
            this.Height = Application.GetMinRealAverage(69);
            this.Width = Application.GetMinRealAverage(69);
            this.UnSelectedImagePath = "Item/MessageManagement.png";
            this.SelectedImagePath = "Item/MessageManagementSelected.png";
            this.ButtonClickEvent += (sender, e) =>
            {
                this.IsSelected = false;
 
                var form = new UserMain.MessageManagementForm();
                form.AddForm();
            };
            //刷新状态
            this.RefreshStatu();
        }
 
        /// <summary>
        /// 刷新状态(也就是如果数据有更新的话,会显示红色角标)
        /// </summary>
        public void RefreshStatu()
        {
            //暂时测试
            this.IsSelected = true;
        }
    }
}