using System;
|
using System.Collections.Generic;
|
using System.Text;
|
|
namespace Shared.Phone.UserCenter.GatewayAdd
|
{
|
/// <summary>
|
/// 添加无线网关的指示图画面
|
/// </summary>
|
public class WirelessGwAddDirectionForm : EditorCommonForm
|
{
|
#region ■ 变量声明___________________________
|
|
#endregion
|
|
#region ■ 初始化_____________________________
|
|
/// <summary>
|
/// 画面显示(底层会固定调用此方法,借以完成画面创建)
|
/// </summary>
|
public void ShowForm()
|
{
|
//设置标题信息
|
base.SetTitleText(Language.StringByID(R.MyInternationalizationString.uAddWirelessGateway));
|
|
//初始化中部控件
|
this.InitMiddleFrame();
|
}
|
|
/// <summary>
|
/// 初始化中部控件
|
/// </summary>
|
private void InitMiddleFrame()
|
{
|
//图标
|
var btnimage = new PicViewControl(766, 691, true);
|
btnimage.Y = Application.GetRealHeight(265);
|
btnimage.Gravity = Gravity.CenterHorizontal;
|
btnimage.UnSelectedImagePath = "Gateway/WirelessGatewayInstruct.png";
|
bodyFrameLayout.AddChidren(btnimage);
|
|
//请确保手机已经链接WIFI
|
var btnMsg1 = new NormalViewControl(bodyFrameLayout.Width, false);
|
btnMsg1.TextID = R.MyInternationalizationString.uWirelessGatewayDirection1;
|
btnMsg1.Y = btnimage.Bottom + Application.GetRealHeight(100);
|
btnMsg1.TextAlignment = TextAlignment.Center;
|
bodyFrameLayout.AddChidren(btnMsg1);
|
|
//去设置
|
var btnNext = new BottomClickButton();
|
btnNext.TextID = R.MyInternationalizationString.uGotoSettion;
|
bodyFrameLayout.AddChidren(btnNext);
|
|
btnNext.MouseUpEventHandler += (sender, e) =>
|
{
|
var form = new WirelessGwSelectNetworkForm();
|
base.AddFromAndRemoveNowForm(form);
|
};
|
}
|
|
#endregion
|
|
#region ■ 一般方法___________________________
|
|
#endregion
|
}
|
}
|