黄学彪
2019-10-10 2ed75b8b337048e5d75e6d9ec8307633134f02fd
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
using System;
using System.Collections.Generic;
using System.Text;
 
namespace Shared.Phone.UserCenter.Safety
{
    /// <summary>
    /// 安防密码修改完成后,提示已经更新的画面
    /// </summary>
    public class PasswordRefreshMsgForm : EditorCommonForm
    {
        /// <summary>
        /// 画面显示(底层会固定调用此方法,借以完成画面创建)
        /// </summary>
        /// <param name="msg">提示信息</param>
        public void ShowForm(string msg)
        {
            //设置头部信息
            base.SetTitleText(Language.StringByID(R.MyInternationalizationString.uChangedPassword));
 
            var txtMsg = new NormalViewControl(1000, true);
            txtMsg.Y = Application.GetRealHeight(320);
            txtMsg.Text = msg;
            txtMsg.Gravity = Gravity.CenterHorizontal;
            txtMsg.TextAlignment = TextAlignment.Center;
            bodyFrameLayout.AddChidren(txtMsg);
 
            HdlThreadLogic.Current.RunThread(() =>
            {
                //五秒后关闭画面
                System.Threading.Thread.Sleep(5000);
                Application.RunOnMainThread(() =>
                {
                    this.CloseForm();
                });
            });
        }
    }
}