From e5f993f52e09eb46878baced83bb8492f147d41c Mon Sep 17 00:00:00 2001 From: WJC <wjc@hdlchina.com.cn> Date: 星期一, 04 十一月 2019 17:58:40 +0800 Subject: [PATCH] 2019-11-04-1 --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/EditorCommonForm.cs | 50 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 49 insertions(+), 1 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/EditorCommonForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/EditorCommonForm.cs index 3be4e71..c9d5faf 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/EditorCommonForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/EditorCommonForm.cs @@ -235,8 +235,56 @@ #endregion - #region 鈻� 娓呯┖BodyFrame______________________ + #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 鈻� 娓呯┖BodyFrame______________________ + /// <summary> /// 娓呯┖BodyFrame /// </summary> -- Gitblit v1.8.0