From feaf4e79e8a75b277910b5cfb15b4c71d605841b Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期五, 26 三月 2021 10:37:23 +0800 Subject: [PATCH] 2021-3-26-1 --- HDL_ON/UI/UI2/4-PersonalCenter/AddDevice/AddMiniRemoteControlDirection1Page.cs | 32 ++++++++++++++++++++++++-------- 1 files changed, 24 insertions(+), 8 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AddDevice/AddMiniRemoteControlDirection1Page.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AddDevice/AddMiniRemoteControlDirection1Page.cs index 3f32913..f80aa7a 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/AddDevice/AddMiniRemoteControlDirection1Page.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/AddDevice/AddMiniRemoteControlDirection1Page.cs @@ -13,6 +13,11 @@ { #region 鈻� 鍙橀噺澹版槑___________________________ + /// <summary> + /// 娣诲姞璁惧瀹屾垚涔嬪悗鐨勫洖璋冧簨浠�(娓╂�昏浠栬嚜宸辫杩欎釜涓滆タ) + /// </summary> + public Action<Entity.Function> AddDeviceEvent = null; + #endregion #region 鈻� 鍒濆鍖朹____________________________ @@ -57,24 +62,35 @@ var btnNext = this.AddBottomClickButton(Language.StringByID(StringId.Next)); btnNext.ButtonClickEvent += (sender, e) => { -#if __IOS__ -#endif -#if __Android__ //妫�娴嬭摑鐗欓渶瑕佺殑涓滆タ - HdlAndroidBluetoothLogic.Current.CheckCanScanBluetooth((result) => + btnNext.CanClick = false; + HdlBluetoothLogic.Current.CheckCanScanBluetooth((result) => { + btnNext.CanClick = true; if (result == true) { - this.CloseForm(); + //娉ㄦ剰锛氳繖涓晫闈笉鑳藉叧闂�,瀹冪敤鏉ュ洖璋冩俯鎬荤殑鐣岄潰鐢ㄧ殑 var form = new AddMiniRemoteControlDirection2Page(); - //wifi鍜屽瘑鐮侀兘涓虹┖ - form.AddForm(); + //鍒濆wifi鍜屽瘑鐮佷负绌� + form.AddForm(string.Empty, string.Empty); } }); -#endif }; } #endregion + + #region 鈻� 鍏抽棴鐣岄潰___________________________ + + /// <summary> + /// 鍏抽棴鐣岄潰 + /// </summary> + public override void CloseFormBefore() + { + this.AddDeviceEvent = null; + base.CloseFormBefore(); + } + + #endregion } } -- Gitblit v1.8.0