| | |
| | | var regionId = (string)btnHomeName.Tag; |
| | | dialog.Close(); |
| | | LoadEvent_ChangeCurHome(home); |
| | | LoadContentView(); |
| | | new System.Threading.Thread(() => { |
| | | try |
| | | { |
| | | while (true) |
| | | { |
| | | if (Common.ApiUtlis.Ins.DownloadDataComplete) |
| | | { |
| | | System.Threading.Thread.Sleep(100); |
| | | } |
| | | else |
| | | { |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | LoadContentView(); |
| | | }); |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | catch { } |
| | | { |
| | | |
| | | } |
| | | }) { IsBackground = true }.Start(); |
| | | |
| | | }; |
| | | } |
| | | dialog.Show(); |
| | |
| | | BorderColor = CSS.CSS_Color.DividingLineColor, |
| | | BorderWidth = 3, |
| | | TextColor = CSS.CSS_Color.TextualColor, |
| | | Radius = 1, |
| | | }; |
| | | searchView.AddChidren(searchTv); |
| | | |
| | |
| | | Width = Application.GetRealWidth(374 / 2), |
| | | Height = Application.GetRealHeight(50) - 1, |
| | | BackgroundColor = CSS.CSS_Color.MainBackgroundColor, |
| | | Text = "上一页", |
| | | TextID = StringId.PreviousPage, |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS.CSS_Color.TextualColor, |
| | | TextSize = CSS.CSS_FontSize.TextFontSize, |
| | | }; |
| | | if(Language.CurrentLanguage != "Chinese") |
| | | { |
| | | btnPre.Text = "Previous"; |
| | | } |
| | | |
| | | bottomOptionView.AddChidren(btnPre); |
| | | btnPre.MouseUpEventHandler = (sender33, e33) => { |
| | | if (pageIndex < 1) |
| | |
| | | Width = Application.GetRealWidth(374 / 2), |
| | | Height = Application.GetRealHeight(50) - 1, |
| | | BackgroundColor = CSS.CSS_Color.MainBackgroundColor, |
| | | Text = "下一页", |
| | | TextID = StringId.NextPage, |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS.CSS_Color.TextualColor, |
| | | TextSize = CSS.CSS_FontSize.TextFontSize, |
| | | }; |
| | | if(Language.CurrentLanguage != "Chinese") |
| | | { |
| | | btnNext.Text = "Next"; |
| | | } |
| | | |
| | | bottomOptionView.AddChidren(btnNext); |
| | | btnNext.MouseUpEventHandler = (sender33, e33) => { |
| | |
| | | var regionId = (string)btnHomeName.Tag; |
| | | dialog.Close(); |
| | | LoadEvent_ChangeCurHome(home); |
| | | LoadContentView(); |
| | | new System.Threading.Thread(() => { |
| | | try |
| | | { |
| | | while (true) |
| | | { |
| | | if (Common.ApiUtlis.Ins.DownloadDataComplete) |
| | | { |
| | | System.Threading.Thread.Sleep(100); |
| | | } |
| | | else |
| | | { |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | LoadContentView(); |
| | | }); |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | catch { } |
| | | { |
| | | |
| | | } |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | }; |
| | | } |
| | | |
| | |
| | | //刷新住宅数据 |
| | | Common.ApiUtlis.Ins.DownloadData(); |
| | | #if __IOS__ |
| | | //var sdm = new SiriKit.SceneDateManager(); |
| | | //sdm.RegionUrl = DB_ResidenceData.Instance.CurrentRegion.regionUrl; |
| | | //sdm.HomeId = DB_ResidenceData.Instance.CurrentRegion.id; |
| | | var sdm = new SiriKit.SceneDateManager(); |
| | | sdm.RegionUrl = DB_ResidenceData.Instance.CurrentRegion.regionUrl; |
| | | sdm.HomeId = DB_ResidenceData.Instance.CurrentRegion.id; |
| | | #endif |
| | | } |
| | | #endregion |