From ec8c4e511c84c33bc6475834c29f774c4c4af74d Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期三, 05 八月 2020 16:22:40 +0800
Subject: [PATCH] 2020-08-05-1
---
HDL_ON/UI/UI2/FuntionControlView/Music/A31LoveMusicList.cs | 49 +++----------------------------------------------
1 files changed, 3 insertions(+), 46 deletions(-)
diff --git a/HDL_ON/UI/UI2/FuntionControlView/Music/A31LoveMusicList.cs b/HDL_ON/UI/UI2/FuntionControlView/Music/A31LoveMusicList.cs
index c79ed5a..e0a95e1 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Music/A31LoveMusicList.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Music/A31LoveMusicList.cs
@@ -21,7 +21,7 @@
{
#region 鐣岄潰甯冨眬------
- this.BackgroundColor = Color.ViewColor;
+ this.BackgroundColor = MusicColor.ViewColor;
var topView = new TopView();
this.AddChidren(topView.TopFLayoutView());
topView.topNameBtn.TextID = StringId.myLove;//a31Music;
@@ -31,7 +31,7 @@
};
middViewLayout = new VerticalRefreshLayout
{
- BackgroundColor = Color.WhiteColor,
+ BackgroundColor = MusicColor.WhiteColor,
Y = topView.fLayout.Bottom,
Height = Application.GetRealHeight(H_W.H - H_W.T_Height),
};
@@ -49,50 +49,7 @@
public void MusicView(string listName)
{
middViewLayout.RemoveAll();
- for (int i = 0; i < A31MusicModel.Current.LoveMusicInfoList.Count; i++)
- {
- var songs = A31MusicModel.Current.LoveMusicInfoList[i];
- View.SongView songView = new View.SongView();
- songView.SongFrameLayout(middViewLayout, songs);
-
- songView.loveIcon.MouseUpEventHandler += (sender, e) =>
- {
- var music= A31MusicModel.Current.LoveMusicInfoList.Find((m) => m.URL == songs.URL);
- if (music!= null)
- {
- ///瀛樺湪灏卞垹闄�
- A31MusicModel.Current.LoveMusicInfoList.Remove(music);
- }
- A31MusicModel.Save();
- songView.musicViewFl.RemoveFromParent();
- };
- //娣诲姞鍒版垜鐨勫垪琛�
- songView.addIcon.MouseUpEventHandler = (sender, e) =>
- {
- new View.DialogView { }.FieListView(songs);
- };
- ///鐐瑰嚮鎾斁浜嬩欢
- songView.clickBtn.MouseUpEventHandler += (sender, e) =>
- {
-
- System.Threading.Tasks.Task.Run(() =>
- {
- System.Threading.Thread.Sleep(50);
- Application.RunOnMainThread(() =>
- {
- //绉婚櫎鐣岄潰
- A31MusicModel.Current.A31PlayStatus.Title = songView.songBtn.Text;
- MainPage.BasePageView.RemoveViewByTag("Music");
- System.Threading.Tasks.Task.Run(() =>
- {
- SendMethod.PushList(songs, listName, A31MusicModel.Current.LoveMusicInfoList,A31MusicModel.Current);
- });
- });
- });
-
- };
-
- }
+ UI2.FuntionControlView.Music.UpdateThread.playMusuc(middViewLayout, "鎴戠殑鏈�鐖�", listName, A31MusicModel.Current.LoveMusicInfoList, A31MusicModel.Current);
}
/// <summary>
/// 瀹氭椂鏇存柊褰撳墠鎾斁闊充箰
--
Gitblit v1.8.0