| | |
| | | /// <summary>
|
| | | /// 初始化地区列表
|
| | | /// </summary>
|
| | | private async void InitAreaList()
|
| | | private void InitAreaList()
|
| | | {
|
| | | if (listAreaCode == null)
|
| | | {
|
| | |
| | |
|
| | | //获取全部的地区代码列表
|
| | | var Pra = new { Common.CommonPage.RequestVersion };
|
| | | string result = await UserCenterLogic.GetResponseDataByRequestHttps("ZigbeeUsers/GetAreaCode", false, Pra);
|
| | | string result = UserCenterLogic.GetResponseDataByRequestHttps("ZigbeeUsers/GetAreaCode", false, Pra);
|
| | | //关闭进度条
|
| | | ProgressBar.Close();
|
| | | if (result == null)
|
| | | if (string.IsNullOrEmpty(result) == true)
|
| | | {
|
| | | return;
|
| | | }
|
| | |
| | | return obj1.First.CompareTo(obj2.First);
|
| | | });
|
| | | }
|
| | | Application.RunOnMainThread(() =>
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | //添加全部明细行
|
| | | this.AddAllDetailRow(listAreaCode);
|
| | |
| | | listData.Add(listAreaCode[i]);
|
| | | }
|
| | | }
|
| | | Application.RunOnMainThread(() =>
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | //添加全部明细行
|
| | | this.AddAllDetailRow(listData);
|