using System; using System.Collections.Generic; using System.Text; namespace Shared.Phone.UserCenter { /// /// 消息中心控件 /// public class MessageManagementControl : ButtonBase { /// /// 消息中心控件 /// 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(); } /// /// 刷新状态(也就是如果数据有更新的话,会显示红色角标) /// public void RefreshStatu() { //暂时测试 this.IsSelected = true; } } }