From 9ab5bd54fadd8fc9c542b48c99a117a4e182669b Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期四, 14 十月 2021 16:37:56 +0800 Subject: [PATCH] 智能空开能源界面数据更新 --- HDL_ON/UI/UI2/FuntionControlView/Music/A31PlayMusicPage.cs | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/Music/A31PlayMusicPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Music/A31PlayMusicPage.cs index 9a98f45..097d477 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/Music/A31PlayMusicPage.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/Music/A31PlayMusicPage.cs @@ -39,7 +39,6 @@ public void Show() { - ///1绉掑畾鏃舵洿鏂扮姸鎬� timerUpdateStatus(); #region ---鐣岄潰甯冨眬--- @@ -75,11 +74,11 @@ playView.collectIconBtn.IsSelected = !playView.collectIconBtn.IsSelected; if (playView.collectIconBtn.IsSelected) { - A31MusicModel.Current.collection = true; + A31MusicModel.Current.collect = true; } else { - A31MusicModel.Current.collection = false; + A31MusicModel.Current.collect = false; } }; @@ -98,6 +97,8 @@ ///鍒囨崲鎾斁妯″紡鐐瑰嚮浜嬩欢; playView.playOrderBtn.MouseUpEventHandler += (sender, e) => { + //single/single_cycle/order/list_cycle/random + string modeValueString = string.Empty; string msg = Language.StringByID(StringId.switchTo); switch (A31MusicModel.Current.A31PlayStatus.loop) { @@ -120,8 +121,9 @@ break; } new PublicAssmebly().TipMsgAutoClose(msg, false,1000); - string url = "http://" + A31MusicModel.Current.IPAddress + "/httpapi.asp?command=setPlayerCmd:" + "loopmode:" + A31MusicModel.Current.A31PlayStatus.loop; - SendMethod.SendCommand(url); + Dictionary<string, string> dic = new Dictionary<string, string>(); + dic.Add("mode",modeValueString); + //SendMethod.sendMethod.SendControlCommand(,dic); }; ///娣诲姞鍠滅埍鐐瑰嚮浜嬩欢; playView.loveBtn.MouseUpEventHandler += (sender, e) => @@ -365,7 +367,7 @@ } } playView.regionBtn.Text = A31MusicModel.Current.GetRoomListName(); - if (A31MusicModel.Current.collection) + if (A31MusicModel.Current.collect) { playView.collectIconBtn.IsSelected = true; } -- Gitblit v1.8.0