mac
2023-10-14 b55fe675d1dd17748a29e4e7de60d14e36740a6e
HDL_ON/UI/UI2/FuntionControlView/Aks/SxqPage.cs
@@ -47,6 +47,13 @@
        public SxqPage(List<SequencerEntity> sequencerList, string deviceId)
        {
            this.sequencerList = sequencerList;
            for (int i = 0; i < 12; i++) {
                this.sequencerList.Add(new SequencerEntity {seqId=i.ToString(),name=i.ToString(),type=1 });
            }
            for (int i = 0; i < 4; i++)
            {
                this.sequencerList.Add(new SequencerEntity { seqId = i.ToString(), name = i.ToString(), type = 2 });
            }
            this.deviceId = deviceId;
        }
        public void Show()
@@ -97,7 +104,7 @@
                VerticalBoutonFLayout buttonFram = new VerticalBoutonFLayout();
                buttonFram.AddView(fLayout);
                buttonFram.Tag = sequencer;
                buttonFram.Y = Application.GetRealWidth(16) + Application.GetRealHeight((VerticalBoutonFLayout.heightFrameLayout + 16) * line);
                buttonFram.Y = Application.GetRealWidth(16) + Application.GetRealHeight((VerticalBoutonFLayout.heightFrameLayout + 8) * line);
                buttonFram.X = Application.GetRealWidth(16) + Application.GetRealWidth((VerticalBoutonFLayout.widthFrameLayout + 8) * xCount);
                buttonFram.btnName.Text = sequencer.name;
                xCount++;
@@ -108,7 +115,7 @@
                }
                buttonFram.SetONClickListener((fl, btn) =>
                {
                    if (buttonFram.Tag != null || buttonFram.Tag is SequencerEntity)
                    if (buttonFram.Tag != null && buttonFram.Tag is SequencerEntity)
                    {
                        var sequ = (SequencerEntity)buttonFram.Tag;
@@ -118,7 +125,7 @@
                });
                buttonFram.SetOFFClickListener((fl, btn) =>
                {
                    if (buttonFram.Tag != null || buttonFram.Tag is SequencerEntity)
                    if (buttonFram.Tag != null && buttonFram.Tag is SequencerEntity)
                    {
                        var sequ = (SequencerEntity)buttonFram.Tag;
                        SequencerControlExecute(sequ.seqId, "off");
@@ -127,7 +134,7 @@
            }
            fLayout.AdjustRealHeight(16);
            fLayout.AdjustRealHeight(8);
            var list2 = this.sequencerList.FindAll((o) => o.type == 2);
            for (int i = 0; i < list2.Count; i++)
@@ -151,7 +158,7 @@
                btnName.MouseDownEventHandler += (sen, e) =>
                {
                    btnName.IsSelected = true;
                    if (btnName.Tag != null || btnName.Tag is SequencerEntity)
                    if (btnName.Tag != null && btnName.Tag is SequencerEntity)
                    {
                        var sequ = (SequencerEntity)btnName.Tag;
                        SequencerControlExecute(sequ.seqId, "on");