HDL Home App 第二版本 旧平台金堂用 正在使用
黄学彪
2019-10-28 8b4d79ca03495e522a1953e04ca17527f33c853a
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/EditorCommonForm.cs
@@ -235,8 +235,38 @@
        #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)
        {
            //还没有绑定网关哦
            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;
        }
        #endregion
        #region ■ 清空BodyFrame______________________
        /// <summary>
        /// 清空BodyFrame
        /// </summary>