| | |
| | | //日期 |
| | | var btnDatetime = new Button() |
| | | { |
| | | X = Application.GetRealWidth(259), |
| | | X = Application.GetRealWidth(249), |
| | | Y = btnTilte.Bottom + Application.GetRealHeight(4), |
| | | Width = Application.GetRealWidth(100), |
| | | Width = Application.GetRealWidth(110), |
| | | Height = Application.GetRealHeight(17), |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | TextColor = CSS_Color.PromptingColor1, |
| | |
| | | }; |
| | | |
| | | |
| | | btnDatetime.Text = GetUnixToDateTime(pushMessageInfo.createTime); |
| | | btnDatetime.Text = GetUnixToDateTime2(pushMessageInfo.createTime); |
| | | |
| | | EventHandler<MouseEventArgs> eventHandler = (sender, e) => |
| | | { |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 时间格式转换处理 |
| | | /// </summary> |
| | | /// <param name="time">毫秒时间戳</param> |
| | | /// <returns></returns> |
| | | string GetUnixToDateTime2(long time) |
| | | { |
| | | try |
| | | { |
| | | return Utlis.UnixToDateTimeWithFormatMS(time, "yyyy-MM-dd HH:mm"); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return ""; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 删除推送消息 |
| | | /// <param name="pushMessageInfo"></param> |
| | | /// <param name="rowView"></param> |