From 18d4b849131c1d44b0a8dc1abee4a57207d1c497 Mon Sep 17 00:00:00 2001
From: WJC <wjc@hdlchina.com.cn>
Date: 星期一, 11 十一月 2019 17:23:59 +0800
Subject: [PATCH] 2019-11-11-1

---
 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/CommonFormBase.cs |   25 +++++--------------------
 1 files changed, 5 insertions(+), 20 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/CommonFormBase.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/CommonFormBase.cs
index 0d36ad3..cd3d842 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/CommonFormBase.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/CommonFormBase.cs
@@ -282,9 +282,7 @@
                             this.ShowMassage(ShowMsgType.Error, Language.StringByID(R.MyInternationalizationString.uUnknownErrorAndDataLost));
 
                             //Log鍑哄姏
-                            string errorMsg = ex.Message + "\r\n";
-                            errorMsg += ex.TargetSite.ToString();
-                            HdlLogLogic.Current.WriteLog(-1, errorMsg);
+                            HdlLogLogic.Current.WriteLog(ex);
                         }
                         action = null;
                     };
@@ -370,7 +368,9 @@
                 {
                     return null;
                 }
-                return form.GetType().InvokeMember(method, System.Reflection.BindingFlags.InvokeMethod, null, form, parameter);
+                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)
             {
@@ -378,9 +378,7 @@
                 this.ShowMassage(ShowMsgType.Error, Language.StringByID(R.MyInternationalizationString.uUnknownErrorAndDataLost));
 
                 //Log鍑哄姏
-                string msg = ex.Message + "\r\n";
-                msg += ex.TargetSite.ToString();
-                HdlLogLogic.Current.WriteLog(-1, msg);
+                HdlLogLogic.Current.WriteLog(ex);
 
                 return null;
             }
@@ -398,19 +396,6 @@
             form.AddForm(parameter);
         }
 
-        #endregion
-
-        #region 鈻� 鐣岄潰閲嶆柊婵�娲讳簨浠禵__________________
-
-        /// <summary>
-        /// <para>鑷韩鐨勪笂灞傜晫闈㈠叧闂悗,瀹冭嚜韬浜庢渶涓婂眰鏃�,瑙﹀彂鐨勪簨浠�</para>
-        /// <para>閲嶅啓鐨勬椂鍊欒繑鍥炲�艰杩斿洖1(杩斿洖鍊兼槸缁欏簳灞備娇鐢ㄧ殑)</para>
-        /// </summary>
-        public virtual int FormActionAgainEvent()
-        {
-            return -1;
-        }
-
         #endregion
     }
 }

--
Gitblit v1.8.0