From f12faaa5ff44ba91ce935ad26e348447fe3228b2 Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期四, 20 一月 2022 17:30:18 +0800
Subject: [PATCH] 2021-1-20-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..3b8ac47 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.mMethod.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.mMethod.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.mMethod.SendControlCommand(a31player, dic);
};
btnNext.MouseUpEventHandler = (sender, e) =>
{
--
Gitblit v1.8.0