using System;
using System.Collections.Generic;
using System.Text;
namespace Shared.Phone.UserCenter.Safety
{
///
/// 安防密码修改完成后,提示已经更新的画面
///
public class PasswordRefreshMsgForm : EditorCommonForm
{
///
/// 画面显示(底层会固定调用此方法,借以完成画面创建)
///
/// 提示信息
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();
});
});
}
}
}