using System;
|
using System.Collections.Generic;
|
using System.Text;
|
|
namespace Shared.Phone.UserCenter.User
|
{
|
/// <summary>
|
/// 网络切换时的显示界面
|
/// </summary>
|
public class NetSwitchAlertForm : FrameLayout
|
{
|
/// <summary>
|
/// 文本信息控件
|
/// </summary>
|
private ViewNormalControl btnText = null;
|
|
/// <summary>
|
/// 显示到界面上
|
/// </summary>
|
public void Show()
|
{
|
this.Height = ControlCommonResourse.TopMenuFrameHeight;
|
if (UserView.HomePage.Instance.ChildrenCount == 0)
|
{
|
return;
|
}
|
Application.MainPage.AddChidren(this);
|
}
|
|
/// <summary>
|
/// 初始化信息控件
|
/// </summary>
|
/// <param name="text"></param>
|
public void InitTextControl(string text)
|
{
|
this.btnText = new ViewNormalControl(this.Width, this.Height, false);
|
btnText.TextAlignment = TextAlignment.Center;
|
btnText.BackgroundColor = UserCenterColor.Current.RemoteLinkPink;
|
btnText.Text = text;
|
this.AddChidren(btnText);
|
|
btnText.BringToFront();
|
btnText.Animate = Animate.UpToDown;
|
}
|
|
/// <summary>
|
/// 设置文本信息
|
/// </summary>
|
/// <param name="text"></param>
|
public void SetText(string text)
|
{
|
this.btnText.Text = text;
|
}
|
|
/// <summary>
|
/// 关闭画面
|
/// </summary>
|
public void CloseForm()
|
{
|
this.RemoveFromParent();
|
}
|
}
|
}
|