using System;
|
using System.Collections.Generic;
|
using System.Text;
|
|
namespace Shared.Phone.UserCenter.GatewayAdd
|
{
|
/// <summary>
|
/// 无线网关UPD模式的说明指示界面
|
/// </summary>
|
public class WirelessUdpDirectionForm : EditorCommonForm
|
{
|
#region ■ 初始化_____________________________
|
|
/// <summary>
|
/// 画面显示(底层会固定调用此方法,借以完成画面创建)
|
/// </summary>
|
public void ShowForm()
|
{
|
//设置头部信息
|
base.SetTitleText(Language.StringByID(R.MyInternationalizationString.uAddWirelessGateway));
|
|
//初始化中部信息
|
this.InitMiddleFrame();
|
}
|
|
/// <summary>
|
/// 初始化中部信息
|
/// </summary>
|
private void InitMiddleFrame()
|
{
|
//清空bodyFrame
|
this.ClearBodyFrame();
|
|
//图片
|
var framePic = new FrameLayout();
|
framePic.Width = Application.GetMinRealAverage(852);
|
framePic.Height = Application.GetMinRealAverage(478);
|
framePic.Gravity = Gravity.CenterHorizontal;
|
framePic.Y = Application.GetRealHeight(251);
|
framePic.BackgroundImagePath = "Gateway/WirelessGatewaySearching.png";
|
bodyFrameLayout.AddChidren(framePic);
|
|
//跳转到移动设备
|
var btnMsg1 = new NormalViewControl(bodyFrameLayout.Width, Application.GetRealHeight(60), false);
|
btnMsg1.Y = framePic.Bottom + Application.GetRealHeight(248);
|
btnMsg1.TextID = R.MyInternationalizationString.uJumpToMobileDevice;
|
btnMsg1.TextAlignment = TextAlignment.Center;
|
btnMsg1.TextColor = UserCenterColor.Current.TextGrayColor3;
|
bodyFrameLayout.AddChidren(btnMsg1);
|
//WLAN设置连接家庭WiFi
|
var btnMsg2 = new NormalViewControl(bodyFrameLayout.Width, Application.GetRealHeight(60), false);
|
btnMsg2.Y = btnMsg1.Bottom;
|
btnMsg2.TextID = R.MyInternationalizationString.uWlanConnectHomeWifi;
|
btnMsg2.TextAlignment = TextAlignment.Center;
|
btnMsg2.TextColor = UserCenterColor.Current.TextGrayColor3;
|
bodyFrameLayout.AddChidren(btnMsg2);
|
|
//去设置
|
var btnSettion = new NormalViewControl(bodyFrameLayout.Width, Application.GetRealHeight(50), false);
|
btnSettion.Y = btnMsg2.Bottom + Application.GetRealHeight(12);
|
btnSettion.TextSize = 12;
|
btnSettion.TextAlignment = TextAlignment.Center;
|
btnSettion.TextColor = 0xff0075ff;
|
btnSettion.Text = Language.StringByID(R.MyInternationalizationString.uGotoSettion);
|
btnSettion.ButtonClickEvent += (sender, e) =>
|
{
|
};
|
bodyFrameLayout.AddChidren(btnSettion);
|
//底线
|
int lineWidth = btnSettion.GetRealWidthByText(12);
|
var btnLine1 = new NormalViewControl(lineWidth, ControlCommonResourse.BottomLineHeight, false);
|
btnLine1.BackgroundColor = 0xff0075ff;
|
btnLine1.Gravity = Gravity.CenterHorizontal;
|
btnLine1.Y = btnSettion.Bottom - Application.GetRealHeight(8);
|
bodyFrameLayout.AddChidren(btnLine1);
|
|
//查看帮助
|
var btnHelp = this.AddHelpControl();
|
btnHelp.ButtonClickEvent += (sender, e) =>
|
{
|
var form = new DeviceDirection.DeviceDirectionHelpForm();
|
form.AddForm("WirelessUdp");
|
};
|
|
//下一步
|
var btnNext = new BottomClickButton();
|
btnNext.TextID = R.MyInternationalizationString.uNextway;
|
bodyFrameLayout.AddChidren(btnNext);
|
btnNext.ButtonClickEvent += (sender, e) =>
|
{
|
var form = new WirelessUdpSelectNetworkForm();
|
this.AddFromAndRemoveNowForm(form);
|
};
|
}
|
|
#endregion
|
}
|
}
|