wxr
2021-03-17 189e35185099a619ec3c2060fed34cd5eee848a4
HDL_ON/UI/UI2/4-PersonalCenter/AddDevice/AddMiniRemoteControlDirection1Page.cs
@@ -13,6 +13,11 @@
    {
        #region ■ 变量声明___________________________
        /// <summary>
        /// 添加设备完成之后的回调事件(温总说他自己要这个东西)
        /// </summary>
        public Action<Entity.Function> AddDeviceEvent = null;
        #endregion
        #region ■ 初始化_____________________________
@@ -64,14 +69,28 @@
                    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
    }
}