| | |
| | | /// </summary> |
| | | TypeMultiFramLayout typeMultiFramLayout; |
| | | |
| | | TypeSingleFramLayout jdhSingleFramLayout; |
| | | |
| | | |
| | | public void Show() |
| | | { |
| | |
| | | { |
| | | this.KeyControl(keypadEntity.keypad, keypadEntity.name); |
| | | }); |
| | | //时序器 |
| | | typeMultiFramLayout.SetLeftFlClickListener((f) => |
| | | { |
| | | SxqPage sxqPage = new SxqPage(this.sequencerList,this.remoteControl.deviceId); |
| | | MainPage.BasePageView.AddChidren(sxqPage); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | sxqPage.Show(); |
| | | |
| | | }); |
| | | //设备切换 |
| | | typeMultiFramLayout.SetRightFlClickListener((f) => |
| | | if (jdhSingleFramLayout != null) |
| | | { |
| | | Console.WriteLine("4"); |
| | | action?.Invoke(IntType.STB); |
| | | }); |
| | | |
| | | //设备切换 |
| | | jdhSingleFramLayout.SetClickListener((f) => |
| | | { |
| | | action?.Invoke(IntType.STB); |
| | | }); |
| | | } |
| | | if (typeMultiFramLayout != null) |
| | | { |
| | | //时序器 |
| | | typeMultiFramLayout.SetLeftFlClickListener((f) => |
| | | { |
| | | SxqPage sxqPage = new SxqPage(this.sequencerList, this.remoteControl.deviceId); |
| | | MainPage.BasePageView.AddChidren(sxqPage); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | sxqPage.Show(); |
| | | |
| | | }); |
| | | //设备切换 |
| | | typeMultiFramLayout.SetRightFlClickListener((f) => |
| | | { |
| | | action?.Invoke(IntType.STB); |
| | | }); |
| | | } |
| | | |
| | | } |
| | | |
| | |
| | | menuFram.Y = Application.GetRealHeight(24); |
| | | menuFram.AddView(cornerBottomFram); |
| | | |
| | | typeMultiFramLayout = new TypeMultiFramLayout(); |
| | | typeMultiFramLayout.multiFramLayout.Y = menuFram.Bottom + Application.GetRealHeight(32); |
| | | typeMultiFramLayout.AddView(cornerBottomFram); |
| | | typeMultiFramLayout.btnBottonRightName.Text=this.remoteControl.name; |
| | | if (sequencerList.Count == 0) |
| | | { |
| | | //没有时序器 |
| | | jdhSingleFramLayout = new TypeSingleFramLayout(); |
| | | jdhSingleFramLayout.AddView(cornerBottomFram); |
| | | jdhSingleFramLayout.singleFramLayout.Y = menuFram.Bottom + Application.GetRealHeight(32); |
| | | jdhSingleFramLayout.singleFramLayout.X = Application.GetRealWidth(226); |
| | | jdhSingleFramLayout.singleFramLayout.Width = Application.GetRealWidth(101); |
| | | jdhSingleFramLayout.btnName.Text = this.remoteControl.name; |
| | | jdhSingleFramLayout.btnName.X = Application.GetRealWidth(16); |
| | | jdhSingleFramLayout.btnName.Width = Application.GetRealWidth(48); |
| | | jdhSingleFramLayout.btnRightImage.X = jdhSingleFramLayout.btnName.Right + Application.GetRealWidth(8); |
| | | jdhSingleFramLayout.btnRightImage.Width = Application.GetRealWidth(16); |
| | | jdhSingleFramLayout.btnRightImage.Height = Application.GetRealWidth(16); |
| | | jdhSingleFramLayout.btnRightImage.UnSelectedImagePath = "AksIcon/xuanze.png"; |
| | | jdhSingleFramLayout.btnRightImage.Gravity = Gravity.CenterVertical; |
| | | jdhSingleFramLayout.btnLeftImage.Visible = false; |
| | | } |
| | | else |
| | | { |
| | | |
| | | typeMultiFramLayout = new TypeMultiFramLayout(); |
| | | typeMultiFramLayout.multiFramLayout.Y = menuFram.Bottom + Application.GetRealHeight(32); |
| | | typeMultiFramLayout.AddView(cornerBottomFram); |
| | | typeMultiFramLayout.btnBottonRightName.Text = this.remoteControl.name; |
| | | } |
| | | |
| | | //初始值 |
| | | leftBtnTitle.IsSelected = true; |