using System;
using System.Collections.Generic;
using System.Text;
namespace Shared.Phone.UserCenter.User
{
///
/// 网络切换时的显示界面
///
public class NetSwitchAlertForm : FrameLayout
{
///
/// 文本信息控件
///
private ViewNormalControl btnText = null;
///
/// 显示到界面上
///
public void Show()
{
this.Height = ControlCommonResourse.TopMenuFrameHeight;
if (UserView.HomePage.Instance.ChildrenCount == 0)
{
return;
}
Application.MainPage.AddChidren(this);
}
///
/// 初始化信息控件
///
///
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;
}
///
/// 设置文本信息
///
///
public void SetText(string text)
{
this.btnText.Text = text;
}
///
/// 关闭画面
///
public void CloseForm()
{
this.RemoveFromParent();
}
}
}