using System; using Shared.Common; namespace Shared.Phone.UserCenter.Abount { public class SLAForm : EditorCommonForm { /// /// 画面显示(底层会固定调用此方法,借以完成画面创建) /// public void ShowForm() { //设置标题信息 base.SetTitleText(Language.StringByID(R.MyInternationalizationString.SLA)); //初始化中部控件 this.InitMiddleFrame(); } /// /// 初始化中部控件 /// private void InitMiddleFrame() { //打开进度条 this.ShowProgressBar(); HdlThreadLogic.Current.RunThread(() => { var strUrl = "https://hdlcontrol.com/%E6%B2%B3%E4%B8%9C%E9%9A%90%E7%A7%81%E6%9D%83%E6%94%BF%E7%AD%9620200331.txt"; var byteData = Common.CommonPage.Instance.DoRequestZigbeeHttpsInterface(strUrl, null, null, "GET"); if (byteData == null) { this.CloseProgressBar(ShowReLoadMode.YES); return; } this.CloseProgressBar(); var receipData = System.Text.Encoding.UTF8.GetString(byteData); HdlThreadLogic.Current.RunMain(() => { var btnText = new EditTextView(); btnText.Height = bodyFrameLayout.Height; btnText.TextSize = 12; btnText.TextColor = UserCenterColor.Current.TextGrayColor3; btnText.TextAlignment = TextAlignment.TopLeft; btnText.Foucs = false; bodyFrameLayout.AddChidren(btnText); btnText.Text = receipData; }); }); } } }