| | |
| | | { |
| | | #region ■ 变量声明___________________________ |
| | | |
| | | /// <summary> |
| | | /// 添加设备完成之后的回调事件(温总说他自己要这个东西) |
| | | /// </summary> |
| | | public Action<Entity.Function> AddDeviceEvent = null; |
| | | |
| | | #endregion |
| | | |
| | | #region ■ 初始化_____________________________ |
| | |
| | | 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 |
| | | } |
| | | } |