From 66a9965c44ecc32a6696abca876ab9d1cd091584 Mon Sep 17 00:00:00 2001 From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local> Date: 星期五, 28 二月 2020 15:25:13 +0800 Subject: [PATCH] 2020.2.28 --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/AreaCodeSelectForm.cs | 28 +++++++++++++--------------- 1 files changed, 13 insertions(+), 15 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/AreaCodeSelectForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/AreaCodeSelectForm.cs index cda830e..cb8e6e2 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/AreaCodeSelectForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/AreaCodeSelectForm.cs @@ -50,7 +50,7 @@ var frameBack = new FrameLayout(); frameBack.Width = Application.GetRealWidth(850); frameBack.Height = Application.GetRealHeight(1342); - frameBack.Radius = (uint)Application.GetMinRealAverage(6); + frameBack.Radius = (uint)Application.GetRealHeight(17); frameBack.BackgroundColor = UserCenterColor.Current.White; frameBack.Gravity = Gravity.CenterHorizontal; frameBack.Y = Application.GetRealHeight(328); @@ -59,11 +59,11 @@ this.listView = new VerticalListControl(3); listView.Y = Application.GetRealHeight(164 - 11); listView.Height = frameBack.Height - Application.GetRealHeight(164 - 11); - listView.Radius = frameBack.Radius; + listView.Radius = (uint)Application.GetRealHeight(17); frameBack.AddChidren(listView); //璇烽�夋嫨鍖哄彿 - var btnTitle = new NormalViewControl(230, 60, true); + var btnTitle = new NormalViewControl(270, 60, true); btnTitle.X = ControlCommonResourse.XXLeft; btnTitle.Y = Application.GetRealHeight(69); btnTitle.TextID = R.MyInternationalizationString.uPleaseSelectAreaCode; @@ -77,13 +77,6 @@ btnSearch.Y = Application.GetRealHeight(46); frameBack.AddChidren(btnSearch); btnSearch.BindEvent(this.SearchEvent); - - new System.Threading.Thread(() => - { - //鍒濆鍖栧湴鍖哄垪琛� - this.InitAreaList(); - }) - { IsBackground = true }.Start(); //璁╄繖涓寜閽繖涓尯鍩熶笉鑳界偣鍑昏彍鍗� var frameTemp = new FrameLayout(); @@ -103,6 +96,12 @@ } this.CloseForm(); }; + + HdlThreadLogic.Current.RunThread(() => + { + //鍒濆鍖栧湴鍖哄垪琛� + this.InitAreaList(); + }); } #endregion @@ -301,9 +300,9 @@ //妗屽竷鎺т欢 this.Width = Application.GetRealWidth(458); this.Height = Application.GetRealHeight(104); - this.Radius = (uint)Application.GetMinRealAverage(6); + this.Radius = (uint)Application.GetRealHeight(17); this.BorderColor = 0xffbfc1c2; - this.BorderWidth = (uint)Application.GetMinRealAverage(3); + this.BorderWidth = 1; } /// <summary> @@ -370,7 +369,7 @@ /// </summary> private void StartSearchKeysThead() { - new System.Threading.Thread(() => + HdlThreadLogic.Current.RunThread(() => { while (this.Parent != null) { @@ -396,8 +395,7 @@ //濡傛灉褰撳墠鐨勬绱㈤敭鍊间笌涓嬩竴涓绱㈤敭鍊间笉涓�鏍风殑璇� //閭e氨璇存槑锛岀敤鎴峰啀娆¤緭鍏ヤ簡閿�硷紝杩欎釜鏃跺�欙紝璁╃嚎绋嬬户缁窇涓嬪幓 } - }) - { IsBackground = true }.Start(); + }); } #endregion -- Gitblit v1.8.0