| | |
| | | /// <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);
|
| | |
|
| | | var btnView = new NormalViewControl(frameTable.Width, Application.GetRealHeight(50), false);
|
| | | btnView.Y = btnPic.Bottom + Application.GetRealHeight(32);
|
| | | btnView.Text = i_Text;
|
| | | btnView.TextAlignment = TextAlignment.Center;
|
| | | btnView.TextSize = 12;
|
| | | btnView.TextColor = UserCenterColor.Current.TextGrayColor1;
|
| | | frameTable.AddChidren(btnView);
|
| | | return;
|
| | | 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> |