| | |
| | | { |
| | | #region ■ 变量声明___________________________ |
| | | |
| | | /// <summary> |
| | | /// 添加设备完成之后的回调事件(温总说他自己要这个东西) |
| | | /// </summary> |
| | | public Action<Entity.Function> AddDeviceEvent = null; |
| | | |
| | | #endregion |
| | | |
| | | #region ■ 初始化_____________________________ |
| | |
| | | |
| | | //长按红外遥控器按钮10秒,指示灯蓝色快闪 |
| | | var strMsg = Language.StringByID(StringId.AddInfraredRemoteControlMsg1); |
| | | var intYY = this.AddListMsgControls(bodyFrameLayout, strMsg, CSS.CSS_FontSize.TextFontSize, |
| | | var listContr = this.AddListMsgControls(bodyFrameLayout, strMsg, CSS.CSS_FontSize.TextFontSize, |
| | | CSS.CSS_Color.FirstLevelTitleColor, Application.GetRealHeight(20), Application.GetRealHeight(408)); |
| | | |
| | | //请确保您的蓝牙已开启并处于可以被搜索状态 |
| | | strMsg = Language.StringByID(StringId.AddInfraredRemoteControlMsg2); |
| | | this.AddListMsgControls(bodyFrameLayout, strMsg, CSS.CSS_FontSize.PromptFontSize_FirstLevel, |
| | | CSS.CSS_Color.PromptingColor1, Application.GetRealHeight(18), intYY + Application.GetRealHeight(4)); |
| | | CSS.CSS_Color.PromptingColor1, Application.GetRealHeight(18), listContr[listContr.Count - 1].Bottom + Application.GetRealHeight(4)); |
| | | |
| | | //下一步 |
| | | var btnNext = this.AddBottomClickButton(Language.StringByID(StringId.Next)); |
| | |
| | | btnNext.CanClick = true; |
| | | if (result == true) |
| | | { |
| | | this.CloseForm(); |
| | | //注意:这个界面不能关闭,它用来回调温总的界面用的 |
| | | var form = new AddMiniRemoteControlDirection2Page(); |
| | | form.AddForm(); |
| | | //初始wifi和密码为空 |
| | | form.AddForm(string.Empty, string.Empty); |
| | | } |
| | | }); |
| | | }; |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | #region ■ 关闭界面___________________________ |
| | | |
| | | /// <summary> |
| | | /// 关闭界面 |
| | | /// </summary> |
| | | public override void CloseFormBefore() |
| | | { |
| | | this.AddDeviceEvent = null; |
| | | base.CloseFormBefore(); |
| | | } |
| | | |
| | | #endregion |
| | | } |
| | | } |