From e2a009ca812c2f933e195c4276b79c34ed31862a Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期五, 17 十二月 2021 18:29:10 +0800
Subject: [PATCH] 2021-12-17-01

---
 HDL_ON/UI/UI2/2-Classification/FunctionControlZoneBLL.cs |   23 ++++++++++++++++-------
 1 files changed, 16 insertions(+), 7 deletions(-)

diff --git a/HDL_ON/UI/UI2/2-Classification/FunctionControlZoneBLL.cs b/HDL_ON/UI/UI2/2-Classification/FunctionControlZoneBLL.cs
index cdaef53..e4a3f68 100644
--- a/HDL_ON/UI/UI2/2-Classification/FunctionControlZoneBLL.cs
+++ b/HDL_ON/UI/UI2/2-Classification/FunctionControlZoneBLL.cs
@@ -291,7 +291,7 @@
         /// <param name="btnOpen"></param>
         /// <param name="btnClose"></param>
         /// <param name="curtain"></param>
-        void LoadEvent_ControlMusic(Button btnPlay,Button btnNext,Button btnPrev, A31MusicModel a31player) 
+        void LoadEvent_ControlMusic(Button btnPlay,Button btnNext,Button btnPrev, Function a31player) 
         {
             if (a31player == null)
                 return;
@@ -299,7 +299,10 @@
             btnPrev.MouseDownEventHandler = (sender, e) =>
             {
                 btnPrev.IsSelected = true;
-                SendMethod.Previous(a31player);
+                a31player.SetAttrState("song_step", "up");
+                Dictionary<string, string> dic = new Dictionary<string, string>();
+                dic.Add("song_step", "up");
+                SendMethod.sendMethod.SendControlCommand(a31player, dic);
             };
             btnPrev.MouseUpEventHandler = (sender, e) =>
             {
@@ -308,24 +311,30 @@
             ///鏆傚仠/鎾斁鐐瑰嚮浜嬩欢
             btnPlay.MouseDownEventHandler = (sender, e) =>
             {
+                string status = "off";
                 if (btnPlay.IsSelected)
                 {
                     btnPlay.IsSelected = false;
-                    SendMethod.Pause(a31player);
-                    a31player.A31PlayStatus.status = "pause";
+                    status = "off";
                 }
                 else
                 {
                     btnPlay.IsSelected = true;
-                    SendMethod.Play(a31player);
-                    a31player.A31PlayStatus.status = "play";
+                    status = "on";
                 }
+                a31player.SetAttrState("on_off", status);
+                Dictionary<string, string> dic = new Dictionary<string, string>();
+                dic.Add("on_off", status);
+                SendMethod.sendMethod.SendControlCommand(a31player, dic);
             };
             ///涓嬩竴鏇茬偣鍑讳簨浠�
             btnNext.MouseDownEventHandler = (sender, e) =>
             {
                 btnNext.IsSelected = true;
-                SendMethod.Next(a31player);
+                a31player.SetAttrState("song_step", "down");
+                Dictionary<string, string> dic = new Dictionary<string, string>();
+                dic.Add("song_step", "down");
+                SendMethod.sendMethod.SendControlCommand(a31player, dic);
             };
             btnNext.MouseUpEventHandler = (sender, e) =>
             {

--
Gitblit v1.8.0