From b55fe675d1dd17748a29e4e7de60d14e36740a6e Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期六, 14 十月 2023 13:01:30 +0800
Subject: [PATCH] 2023年10月14日13:01:27
---
HDL_ON/UI/UI2/FuntionControlView/Aks/SxqPage.cs | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/HDL_ON/UI/UI2/FuntionControlView/Aks/SxqPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Aks/SxqPage.cs
index 4015f81..2662f4d 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Aks/SxqPage.cs
+++ b/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++;
@@ -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++)
--
Gitblit v1.8.0