New file |
| | |
| | | using System; |
| | | namespace Shared.Phone.UserCenter.GatewayAdd |
| | | { |
| | | /// <summary> |
| | | /// 添加有线网关的指示图画面 |
| | | /// </summary> |
| | | public class WiredGwAddDirectionForm : EditorCommonForm |
| | | { |
| | | /// <summary> |
| | | /// 画面显示(底层会固定调用此方法,借以完成画面创建) |
| | | /// </summary> |
| | | public void ShowForm() |
| | | { |
| | | //设置标题信息 |
| | | base.SetTitleText(Language.StringByID(R.MyInternationalizationString.uAddWiredGateway)); |
| | | |
| | | //初始化中部控件 |
| | | this.InitMiddleFrame(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 初始化中部控件 |
| | | /// </summary> |
| | | private void InitMiddleFrame() |
| | | { |
| | | //清空bodyFrame |
| | | this.ClearBodyFrame(); |
| | | |
| | | //图标 |
| | | var btnimage = new PicViewControl(915, 492, true);
|
| | | btnimage.Y = Application.GetRealHeight(80);
|
| | | btnimage.Gravity = Gravity.CenterHorizontal;
|
| | | btnimage.UnSelectedImagePath = "Gateway/WiredGatewayInstruct.png"; |
| | | bodyFrameLayout.AddChidren(btnimage); |
| | | |
| | | //请确保网关已用网线连接 |
| | | var btnText = new NormalViewControl(bodyFrameLayout.Width, false);
|
| | | btnText.TextID = R.MyInternationalizationString.ConfirmLineConnectMsg;
|
| | | btnText.Y = btnimage.Bottom + Application.GetRealHeight(60); |
| | | bodyFrameLayout.AddChidren(btnText); |
| | | |
| | | //下一步 |
| | | var btnNext = new BottomClickButton();
|
| | | btnNext.TextID = R.MyInternationalizationString.uNextway; |
| | | bodyFrameLayout.AddChidren(btnNext); |
| | | |
| | | btnNext.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | var form = new WiredGatewaySearchForm(); |
| | | base.AddFromAndRemoveNowForm(form); |
| | | }; |
| | | } |
| | | } |
| | | } |