mac
2023-10-16 5868b389a3544cf14ff65e87b554c07349badd28
HDL_ON/UI/UI2/FuntionControlView/Aks/GfPage.cs
@@ -34,6 +34,7 @@
        public Action<IntType> action;
        CornerFramLayout cornerFram;
        TypeMultiFramLayout typeMultiFramLayout;
        TypeSingleFramLayout gfSingleFramLayout;
        public void Show()
        {
@@ -57,6 +58,18 @@
            {
                this.KeyControl(keypadEntity.keypad, keypadEntity.name);
            };
            if (gfSingleFramLayout != null)
            {
                //设备切换
                gfSingleFramLayout.SetClickListener((f) =>
                {
                    action?.Invoke(IntType.HiFi);
                });
            }
            if (typeMultiFramLayout != null)
            {
            //时序器
            typeMultiFramLayout.SetLeftFlClickListener((f) =>
            {
@@ -71,6 +84,7 @@
            {
                action?.Invoke(IntType.HiFi);
            });
            }
        }
@@ -108,12 +122,47 @@
            cornerBottomFram.Radius = (uint)Application.GetRealHeight(17);
            this.AddChidren(cornerBottomFram);
            if (sequencerList.Count == 0)
            {
                //没有时序器
                gfSingleFramLayout = new TypeSingleFramLayout();
                gfSingleFramLayout.AddView(cornerBottomFram);
                gfSingleFramLayout.singleFramLayout.X = Application.GetRealWidth(226);
                gfSingleFramLayout.singleFramLayout.Width = Application.GetRealWidth(101);
                gfSingleFramLayout.singleFramLayout.Gravity = Gravity.CenterVertical;
                gfSingleFramLayout.btnName.Text = this.remoteControl.name;
                gfSingleFramLayout.btnName.X = Application.GetRealWidth(16);
                gfSingleFramLayout.btnName.Width = Application.GetRealWidth(48);
                gfSingleFramLayout.btnRightImage.X = gfSingleFramLayout.btnName.Right + Application.GetRealWidth(8);
                gfSingleFramLayout.btnRightImage.Width = Application.GetRealWidth(16);
                gfSingleFramLayout.btnRightImage.Height = Application.GetRealWidth(16);
                gfSingleFramLayout.btnRightImage.UnSelectedImagePath = "AksIcon/xuanze.png";
                gfSingleFramLayout.btnRightImage.Gravity = Gravity.CenterVertical;
                gfSingleFramLayout.btnLeftImage.Visible = false;
                if (gfSingleFramLayout.btnName.GetTextWidth() > Application.GetRealWidth(48))
                {
                    gfSingleFramLayout.singleFramLayout.Width = Application.GetRealWidth(101 - 48) + gfSingleFramLayout.btnName.GetTextWidth();
                    gfSingleFramLayout.singleFramLayout.X = Application.GetRealWidth(226 + 48) - gfSingleFramLayout.btnName.GetTextWidth();
                    gfSingleFramLayout.btnName.Width = gfSingleFramLayout.btnName.GetTextWidth();
                    gfSingleFramLayout.btnRightImage.X = gfSingleFramLayout.btnName.Right + Application.GetRealWidth(8);
                }
            }
            else
            {
                //有时序器
            typeMultiFramLayout = new TypeMultiFramLayout();
            typeMultiFramLayout.multiFramLayout.Gravity = Gravity.Center;
            typeMultiFramLayout.AddView(cornerBottomFram);
            typeMultiFramLayout.btnBottonRightName.Text = this.remoteControl.name;
            }
            this.AdjustRealHeight(16);
        }
        /// <summary>