| | |
| | | dialog.Close(); |
| | | LoadEvent_ChangeCurHome(home); |
| | | LoadContentView(); |
| | | HDL_ON.UI.UI2.FuntionControlView.VideoDoorLock.CommonMethod.Current.ChangeCurrHome(home); |
| | | }; |
| | | } |
| | | dialog.Show(); |
| | |
| | | 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, |
| | | }; |
| | | |
| | | bottomOptionView.AddChidren(btnPre); |
| | | btnPre.MouseUpEventHandler = (sender, e) => { |
| | | btnPre.MouseUpEventHandler = (sender33, e33) => { |
| | | if (pageIndex < 1) |
| | | { |
| | | return; |
| | |
| | | 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, |
| | | }; |
| | | |
| | | bottomOptionView.AddChidren(btnNext); |
| | | btnNext.MouseUpEventHandler = (sender, e) => { |
| | | btnNext.MouseUpEventHandler = (sender33, e33) => { |
| | | pageIndex++; |
| | | if (pageIndex > pageCount-1) |
| | | { |
| | |
| | | #endregion |
| | | |
| | | |
| | | searchTv.TextChangeEventHandler = (sender, e) => { |
| | | searchTv.TextChangeEventHandler = (sender33, e33) => { |
| | | new System.Threading.Thread(() => { |
| | | newlist = UserInfo.Current.regionList.FindAll((obj) => obj.homeName.Contains(e)); |
| | | newlist = UserInfo.Current.regionList.FindAll((obj) => obj.homeName.Contains(e33)); |
| | | pageCount = newlist.Count; |
| | | pageIndex = 0; |
| | | Application.RunOnMainThread(() => { |
| | |
| | | dialog.Close(); |
| | | LoadEvent_ChangeCurHome(home); |
| | | LoadContentView(); |
| | | HDL_ON.UI.UI2.FuntionControlView.VideoDoorLock.CommonMethod.Current.ChangeCurrHome(home); |
| | | }; |
| | | } |
| | | |