黄学彪
2020-05-11 53cb8c211ecec2388a6583d32c5d2fe709285344
ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionFileContentForm.cs
@@ -32,6 +32,8 @@
        /// </summary>
        private void InitMiddleFrame(string i_file)
        {
            if (i_file == string.Empty) { return; }
            if (i_file.EndsWith(".png") == true || i_file.EndsWith(".jpg") == true || i_file.EndsWith(".JPG") == true)
            {
                var btnPic = new ImageView();
@@ -46,6 +48,16 @@
            else
            {
                string textValue = System.Text.Encoding.UTF8.GetString(Shared.IO.FileUtils.ReadFile(i_file)).Trim();
                this.SetTextContent(textValue);
            }
        }
        /// <summary>
        /// 自定义设置显示的文本
        /// </summary>
        /// <param name="i_text"></param>
        public void SetTextContent(string textValue)
        {
                textValue = textValue.Replace(",", "\r\n");
                if (textValue.StartsWith("{") == true)
                {
@@ -63,7 +75,6 @@
                btnText.TextColor = UserCenterColor.Current.TextColor1;
                btnText.Text = textValue;
                bodyFrameLayout.AddChidren(btnText);
            }
        }
        #endregion