| | |
| | | /// <summary>
|
| | | /// 智能门锁的添加步骤界面
|
| | | /// </summary>
|
| | | public class IntelligentLocksH06cDirectionForm : EditorCommonForm
|
| | | public class IntelligentLocksH06cDirectionForm : DirectionCommonForm
|
| | | {
|
| | | #region ■ 初始化_____________________________
|
| | |
|
| | |
| | | /// 初始化中部信息 |
| | | /// </summary> |
| | | private void InitMiddleFrame() |
| | | {
|
| | | //清空bodyFrame
|
| | | this.ClearBodyFrame(); |
| | | |
| | | { |
| | | //图片 |
| | | var btnPic = new PicViewControl(524, 619, true); |
| | | btnPic.UnSelectedImagePath = "Instruct/IntelligentLocksH06C.png"; |
| | |
| | | //输入“1”,确认设备入网
|
| | | string[] msgArry = Language.StringByID(R.MyInternationalizationString.uAddIntelligentLockMsg).Split(new string[] { "{0}" }, StringSplitOptions.RemoveEmptyEntries);
|
| | |
|
| | | var msg1 = new NormalViewControl(bodyFrameLayout.Width, Application.GetRealHeight(58), false);
|
| | | var msg1 = new NormalViewControl(bodyFrameLayout.Width, Application.GetRealHeight(60), false);
|
| | | msg1.Y = Application.GetRealHeight(1008);
|
| | | msg1.Text = msgArry[0];
|
| | | msg1.TextColor = UserCenterColor.Current.TextGrayColor3; |
| | | msg1.TextAlignment = TextAlignment.Center; |
| | | bodyFrameLayout.AddChidren(msg1);
|
| | | var msg2 = new NormalViewControl(bodyFrameLayout.Width, Application.GetRealHeight(58), false);
|
| | | var msg2 = new NormalViewControl(bodyFrameLayout.Width, Application.GetRealHeight(60), false);
|
| | | msg2.Y = msg1.Bottom;
|
| | | if (msgArry.Length > 1)
|
| | | {
|
| | |
| | | msg2.TextColor = UserCenterColor.Current.TextGrayColor3; |
| | | msg2.TextAlignment = TextAlignment.Center; |
| | | bodyFrameLayout.AddChidren(msg2);
|
| | | var msg3 = new NormalViewControl(bodyFrameLayout.Width, Application.GetRealHeight(58), false);
|
| | | var msg3 = new NormalViewControl(bodyFrameLayout.Width, Application.GetRealHeight(60), false);
|
| | | msg3.Y = msg2.Bottom;
|
| | | if (msgArry.Length > 2)
|
| | | {
|
| | |
| | | }
|
| | | msg3.TextColor = UserCenterColor.Current.TextGrayColor3; |
| | | msg3.TextAlignment = TextAlignment.Center; |
| | | bodyFrameLayout.AddChidren(msg3);
|
| | | //查看帮助
|
| | | var btnHelp = new NormalViewControl(bodyFrameLayout.Width, Application.GetRealHeight(49), false);
|
| | | btnHelp.Y = Application.GetRealHeight(1388);
|
| | | btnHelp.TextSize = 12;
|
| | | btnHelp.TextAlignment = TextAlignment.Center;
|
| | | btnHelp.TextColor = UserCenterColor.Current.TextOrangeColor;
|
| | | btnHelp.Text = Language.StringByID(R.MyInternationalizationString.uSearchHelp);
|
| | | btnHelp.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | var form = new DeviceDirectionHelpForm();
|
| | | form.AddForm(string.Empty);
|
| | | };
|
| | | bodyFrameLayout.AddChidren(btnHelp);
|
| | | //底线
|
| | | int lineWidth = btnHelp.GetRealWidthByText(12);
|
| | | var btnLine = new NormalViewControl(lineWidth, ControlCommonResourse.BottomLineHeight, false);
|
| | | btnLine.BackgroundColor = UserCenterColor.Current.TextOrangeColor;
|
| | | btnLine.Gravity = Gravity.CenterHorizontal;
|
| | | btnLine.Y = btnHelp.Bottom - Application.GetRealHeight(8);
|
| | | bodyFrameLayout.AddChidren(btnLine); |
| | | |
| | | //下一步 |
| | | var btnNext = new BottomClickButton(); |
| | | btnNext.TextID = R.MyInternationalizationString.uNextway;
|
| | | bodyFrameLayout.AddChidren(btnNext); |
| | | btnNext.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | var form = new Device.DeviceSearchForm(); |
| | | form.AddForm(this.FormID);
|
| | | }; |
| | | bodyFrameLayout.AddChidren(msg3); |
| | | }
|
| | |
|
| | | #endregion
|