| | |
| | | /// </summary> |
| | | public Action FloorAction = null; |
| | | /// <summary> |
| | | /// 选中的楼层回调[ |
| | | /// 选中的楼层回调 |
| | | /// </summary> |
| | | public Action<string, Button> ChooseFloorAction = null; |
| | | /// <summary> |
| | | /// 重新加载 |
| | | /// </summary> |
| | | public Action ReLoadAction = null; |
| | | |
| | | public FrameLayout topFrameLayout = new FrameLayout { Height = Application.GetRealHeight(184), BackgroundColor = ZigbeeColor.Current.XMTopFrameLayout }; |
| | | public FrameLayout midFrameLayout = new FrameLayout { Height = Application.GetRealHeight(1925 - 184), BackgroundColor = ZigbeeColor.Current.XMMidFrameLayout }; |
| | |
| | | btnTitle.Text = titleText; |
| | | } |
| | | /// <summary> |
| | | /// 门锁中部布局 |
| | | /// 中部布局 |
| | | /// </summary> |
| | | /// <param name="frameLayout"></param> |
| | | public void MidFrameLayout(FrameLayout frameLayout) |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 门锁底部布局 |
| | | /// 底部布局 |
| | | /// </summary> |
| | | /// <param name="frameLayout"></param> |
| | | public void BottomFrameLayout(FrameLayout frameLayout) |
| | |
| | | BackgroundColor = ZigbeeColor.Current.XMWhite, |
| | | }; |
| | | this.midFrameLayout.AddChidren(bottomFrameLayout1); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 显示重新加载的界面(主要是用在界面加载错误时,再次加载) |
| | | /// </summary> |
| | | public void ShowReLoadView() |
| | | { |
| | | var frame = new FrameLayout(); |
| | | frame.BackgroundColor = UserCenterColor.Current.White; |
| | | frame.Tag = "ReLoadView"; |
| | | this.midFrameLayout.AddChidren(frame); |
| | | |
| | | //重新加载 |
| | | var btnReLoad = new BottomClickButton(); |
| | | btnReLoad.Gravity = Gravity.Center; |
| | | btnReLoad.TextID = R.MyInternationalizationString.uDoReload; |
| | | frame.AddChidren(btnReLoad); |
| | | btnReLoad.ButtonClickEvent += (sender, e) => |
| | | { |
| | | ReLoadAction?.Invoke(); |
| | | ReLoadAction = null; |
| | | }; |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | btnFloorText = new Button |
| | | { |
| | | Width = Application.GetRealWidth(300 - 69 - 58), |
| | | Text = Language.StringByID(R.MyInternationalizationString.FirstFloor), |
| | | TextColor = Shared.Common.ZigbeeColor.Current.XMBlack, |
| | | TextSize = 14, |
| | | IsBold = true, |