From a4924de3136289d10cabbf2f61a228387d44ded7 Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期四, 07 十一月 2019 13:48:36 +0800
Subject: [PATCH] Merge branch 'dev-tzy' into DEV_GXC

---
 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/EditorCommonForm.cs |  104 +++++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 95 insertions(+), 9 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/EditorCommonForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/EditorCommonForm.cs
index be19a18..8b8cbf3 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/EditorCommonForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/EditorCommonForm.cs
@@ -149,14 +149,10 @@
             UserView.HomePage.Instance.PageIndex += 1;
 
             //鍒濆鍖栫晫闈㈡鏋�
-            this.InitForm();
-
-            //寮哄埗鏄剧ず鐣岄潰,鍒濆鍖栧畬妗嗘灦鍚�,灏辩洿鎺ユ樉绀虹晫闈�
-            HdlThreadLogic.Current.RunMainInThread(() =>
-            {
-                //鎵цShowForm()鏂规硶
-                this.LoadShowFormMethod(parameter);
-            });
+            this.InitForm();
+
+            //鎵цShowForm()鏂规硶
+            this.LoadShowFormMethod(parameter);
         }
 
         #endregion
@@ -238,9 +234,99 @@
         }
 
         #endregion
+
+        #region 鈻� 娣诲姞甯姪鎺т欢_______________________
 
+        /// <summary>
+        /// 娣诲姞鏌ョ湅甯姪鎺т欢
+        /// </summary>
+        /// <returns></returns>
+        public NormalViewControl AddHelpControl()
+        {
+            //鏌ョ湅甯姪
+            var btnHelp = new NormalViewControl(bodyFrameLayout.Width, Application.GetRealHeight(50), false);
+            btnHelp.Y = Application.GetRealHeight(1388);
+            btnHelp.TextSize = 12;
+            btnHelp.TextAlignment = TextAlignment.Center;
+            btnHelp.TextColor = UserCenterColor.Current.TextOrangeColor;
+            btnHelp.Text = Language.StringByID(R.MyInternationalizationString.uSearchHelp);
+            bodyFrameLayout.AddChidren(btnHelp);
+            //搴曠嚎
+            int lineWidth = btnHelp.GetRealWidthByText(12);
+            var btnLine = new NormalViewControl(lineWidth, ControlCommonResourse.BottomLineHeight, false);
+            btnLine.BackgroundColor = UserCenterColor.Current.TextOrangeColor;
+            btnLine.Gravity = Gravity.CenterHorizontal;
+            btnLine.Y = btnHelp.Bottom - Application.GetRealHeight(8);
+            bodyFrameLayout.AddChidren(btnLine);
+
+            return btnHelp;
+        }
+
+        #endregion
+
+        #region 鈻� 鏄剧ず娌℃湁鏁版嵁鐨勫浘鍍忔樉绀虹壒鏁坃________
+
+        /// <summary>
+        /// 鏄剧ず娌℃湁鏁版嵁鐨勫浘鍍忔樉绀虹壒鏁�
+        /// </summary>
+        /// <param name="frameTable">瀹瑰櫒</param>
+        /// <param name="i_Text">鏄剧ず鏂囧瓧</param>
+        /// <param name="Imagepath">鍥惧儚鍦板潃</param>
+        /// <param name="imageWith">鍥惧儚瀹藉害(闈炵湡瀹炲��)</param>
+        /// <param name="imageHeight">鍥惧儚楂樺害(闈炵湡瀹炲��)</param>
+        public void ShowNotDataImage(FrameLayout frameTable, string i_Text, string Imagepath = "Item/NoFunction.png", int imageWith = 683, int imageHeight = 392)
+        {
+            this.ShowNotDataImage(frameTable, new string[] { i_Text }, Imagepath, imageWith, imageHeight);
+        }
+
+        /// <summary>
+        /// 鏄剧ず娌℃湁鏁版嵁鐨勫浘鍍忔樉绀虹壒鏁�
+        /// </summary>
+        /// <param name="frameTable">瀹瑰櫒</param>
+        /// <param name="listText">鏄剧ず鏂囧瓧</param>
+        /// <param name="Imagepath">鍥惧儚鍦板潃</param>
+        /// <param name="imageWith">鍥惧儚瀹藉害(闈炵湡瀹炲��)</param>
+        /// <param name="imageHeight">鍥惧儚楂樺害(闈炵湡瀹炲��)</param>
+        public void ShowNotDataImage(FrameLayout frameTable, string[] listText, string Imagepath = "Item/NoFunction.png", int imageWith = 683, int imageHeight = 392)
+        {
+            var btnPic = new PicViewControl(imageWith, imageHeight);
+            btnPic.UnSelectedImagePath = Imagepath;
+            btnPic.Y = (int)(frameTable.Height * 0.382) - Application.GetRealHeight(imageHeight / 2);
+            btnPic.Gravity = Gravity.CenterHorizontal;
+            frameTable.AddChidren(btnPic);
+
+            int yy = btnPic.Bottom + Application.GetRealHeight(32);
+            for (int i = 0; i < listText.Length; i++)
+            {
+                var btnView = new NormalViewControl(frameTable.Width, Application.GetRealHeight(50), false);
+                btnView.Y = yy;
+                btnView.Text = listText[i];
+                btnView.TextAlignment = TextAlignment.Center;
+                btnView.TextSize = 12;
+                btnView.TextColor = UserCenterColor.Current.TextGrayColor1;
+                frameTable.AddChidren(btnView);
+
+                yy = btnView.Bottom;
+            }
+        }
+
+        #endregion
+
+        #region 鈻� 鐣岄潰閲嶆柊婵�娲讳簨浠禵__________________
+
+        /// <summary>
+        /// <para>鑷韩鐨勪笂灞傜晫闈㈠叧闂悗,瀹冭嚜韬浜庢渶涓婂眰鏃�,瑙﹀彂鐨勪簨浠�</para>
+        /// <para>閲嶅啓鐨勬椂鍊欒繑鍥炲�艰杩斿洖1(杩斿洖鍊兼槸缁欏簳灞備娇鐢ㄧ殑)</para>
+        /// </summary>
+        public virtual int FormActionAgainEvent()
+        {
+            return -1;
+        }
+
+        #endregion
+
         #region 鈻� 娓呯┖BodyFrame______________________
-
+
         /// <summary>
         /// 娓呯┖BodyFrame
         /// </summary>

--
Gitblit v1.8.0