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;
|
}
|
}
|
}
|