From 44d6b49d86f8c531cbed718a8c109f3bc2db2177 Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期三, 09 八月 2023 16:27:23 +0800
Subject: [PATCH] 2023年08月09日16:27:16

---
 HDL_ON/UI/UI2/FuntionControlView/Aks/MusicPage.cs |   31 +++++++++++++++++++++++--------
 1 files changed, 23 insertions(+), 8 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/Aks/MusicPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Aks/MusicPage.cs
index 2aee513..ae0273e 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Aks/MusicPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Aks/MusicPage.cs
@@ -2,6 +2,7 @@
 using System.Collections.Generic;
 using HDL_ON.UI.Music;
 using HDL_ON.UI.UI2.FuntionControlView.Aks.CommonView;
+using HDL_ON.UI.UI2.FuntionControlView.Aks.Entity;
 using Shared;
 using static HDL_ON.UI.UI2.FuntionControlView.Aks.AksPage;
 namespace HDL_ON.UI.UI2.FuntionControlView.Aks
@@ -11,12 +12,24 @@
     /// </summary>
     public class MusicPage : BaseFramLayout
     {
-        public MusicPage()
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <param name="remoteControlEntity">閬ユ帶鍣ㄥ璞�</param>
+        /// <param name="sequencerList">鏃跺簭鍣ㄥ垪琛�</param>
+        public MusicPage(RemoteControlEntity remoteControlEntity, List<SequencerEntity> sequencerList)
         {
+            this.remoteControl = remoteControlEntity;
+            this.sequencerList = sequencerList;
         }
-
-
-
+        /// <summary>
+        /// 鏃跺簭鍣ㄥ垪琛�
+        /// </summary>
+        private List<SequencerEntity> sequencerList;
+        /// <summary>
+        /// 褰撳墠鐨勯仴鎺у櫒瀵硅薄
+        /// </summary>
+        private RemoteControlEntity remoteControl;
         public Action<IntType> action;
         CornerFramLayout cornerFram;
         TypeSingleFramLayout typeSingleFramLayout;
@@ -78,7 +91,7 @@
 
             typeMultiFramLayout.SetLeftFlClickListener((f) =>
             {
-                SxqPage sxqPage = new SxqPage();
+                SxqPage sxqPage = new SxqPage(this.sequencerList, this.remoteControl.deviceId);
                 MainPage.BasePageView.AddChidren(sxqPage);
                 MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
                 sxqPage.Show();
@@ -105,7 +118,8 @@
                 TextAlignment = TextAlignment.CenterLeft,
                 TextColor = MusicColor.TextColor,
                 TextSize = TextSize.Text16,
-                TextID = StringId.bofangqi,
+                //TextID = StringId.bofangqi,
+                Text = this.remoteControl.name,
             };
             this.AddChidren(btnTitle);
 
@@ -114,7 +128,7 @@
             cornerFram.Y = btnTitle.Bottom + Application.GetRealHeight(16);
             this.AddChidren(cornerFram);
             cornerFram.SetMargin(16, 0, 16, 0);
-            cornerFram.LoadButtonPage(AksCommonMethod.Current.GetMusicKeypadList(),4);
+            cornerFram.LoadButtonPage(AksCommonMethod.Current.GetMusicKeypadList(), 4);
 
 
             CornerFramLayout cornerBottomFram = new CornerFramLayout(343, 364, 17);
@@ -135,7 +149,8 @@
             typeMultiFramLayout = new TypeMultiFramLayout();
             typeMultiFramLayout.multiFramLayout.Y = menuFram.Bottom + Application.GetRealHeight(32);
             typeMultiFramLayout.AddView(cornerBottomFram);
-            typeMultiFramLayout.btnBottonRightName.TextID = StringId.bofangqi;
+            //typeMultiFramLayout.btnBottonRightName.TextID = StringId.bofangqi;
+            typeMultiFramLayout.btnBottonRightName.Text = this.remoteControl.name;
 
             this.AdjustRealHeight(16);
         }

--
Gitblit v1.8.0