From 8b9ce384b26c414db32f98e94e088f5334869c2d Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期三, 13 十一月 2019 15:36:28 +0800 Subject: [PATCH] 全部合并了代码,安卓和 IOS 都测试通过了 --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/CommonFormBase.cs | 48 +++++++++++++++++++++++++++++++++++------------- 1 files changed, 35 insertions(+), 13 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/CommonFormBase.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/CommonFormBase.cs index cd3d842..3afd627 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/CommonFormBase.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/CommonFormBase.cs @@ -72,27 +72,50 @@ #region 鈻� 鍏抽棴鐣岄潰___________________________ /// <summary> + /// 鐢婚潰鍏抽棴涔嬪墠(搴曞眰鍙樻洿,涓嶈兘閲嶈浇CloseForm鏂规硶浜�) + /// </summary> + public virtual void CloseFormBefore() + { + } + + /// <summary> + /// 鐢婚潰鍏抽棴涔嬪悗(鏂板) + /// </summary> + public virtual void CloseFormAfter() + { + } + + /// <summary> /// 鐢婚潰鍏抽棴 /// </summary> public virtual void CloseForm() { //Log鍑哄姏 HdlLogLogic.Current.WriteLog(1, this.FormID + " 鐣岄潰鍏抽棴"); + try + { + //绉婚櫎鎺ュ彈鍦ㄧ嚎鐘舵�佹帹閫� + this.RemoveGatewayOnlinePush(); + //绉婚櫎璁惧灞炴�у彉鏇存帹閫� + this.RemoveDeviceAttributePush(); - //绉婚櫎鎺ュ彈鍦ㄧ嚎鐘舵�佹帹閫� - this.RemoveGatewayOnlinePush(); - //绉婚櫎璁惧灞炴�у彉鏇存帹閫� - this.RemoveDeviceAttributePush(); + //鍏抽棴杩涘害鏉� + this.CloseProgressBar(); - //鍏抽棴杩涘害鏉� - this.CloseProgressBar(); + //璋冪敤鐨勬槸Base鐨勭Щ闄ゆ帶浠跺嚱鏁� + //鑰屼笉鏄皟鐢╰his鐨勭Щ闄ゆ帶浠跺嚱 + base.RemoveFromParent(); - //璋冪敤鐨勬槸Base鐨勭Щ闄ゆ帶浠跺嚱鏁� - //鑰屼笉鏄皟鐢╰his鐨勭Щ闄ゆ帶浠跺嚱 - base.RemoveFromParent(); - - //浠庡垪琛ㄤ腑绉婚櫎(闃叉鐢婚潰浜岄噸娣诲姞) - UserCenterLogic.RemoveActionForm(this); + //浠庡垪琛ㄤ腑绉婚櫎(闃叉鐢婚潰浜岄噸娣诲姞) + UserCenterLogic.RemoveActionForm(this); + } + catch (Exception ex) + { + //鍑虹幇鏈煡閿欒 + this.ShowMassage(ShowMsgType.Error, Language.StringByID(R.MyInternationalizationString.uUnKnownError)); + //Log鍑哄姏 + HdlLogLogic.Current.WriteLog(ex); + } } /// <summary> @@ -370,7 +393,6 @@ } var myMethod = form.GetType().GetMethod(method); return myMethod.Invoke(form, parameter); - //return form.GetType().InvokeMember(method, System.Reflection.BindingFlags.InvokeMethod, null, form, parameter); } catch (Exception ex) { -- Gitblit v1.8.0