From a499dceb02f181e64956431ed0c682dd7d2ce7d7 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期二, 04 八月 2020 17:45:20 +0800
Subject: [PATCH] 2020-08-04-1
---
HDL_ON/UI/UI2/FuntionControlView/Music/MusicMain.cs | 35 +++++++++++++++++++++++++----------
1 files changed, 25 insertions(+), 10 deletions(-)
diff --git a/HDL_ON/UI/UI2/FuntionControlView/Music/MusicMain.cs b/HDL_ON/UI/UI2/FuntionControlView/Music/MusicMain.cs
index 22f34f4..4e9f33b 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Music/MusicMain.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Music/MusicMain.cs
@@ -8,18 +8,31 @@
public class MusicMain : FrameLayout
{
-
+ /// <summary>
+ /// MusicMain瀵硅薄鏋勯�犲嚱鏁�
+ /// </summary>
public MusicMain()
{
Tag = "MusicMain";
+ //杩涙潵闊充箰鍒楄〃鐣岄潰鍏堢Щ闄や箣鍓嶇嚎绋�;
+ A31MusicModel.RemoveListThread();
}
+ /// <summary>
+ /// 閲嶅啓RemoveFromParent鏂规硶
+ /// </summary>
public override void RemoveFromParent()
{
base.RemoveFromParent();
clearA31Threads();
A31MusicModel.ReadMusicStates();//杩涙潵娌℃湁闊充箰琚敹钘忚繃锛岄��鍑烘湁闊充箰琚敹钘忚繃
}
+ /// <summary>
+ /// 鍒涘缓绾跨▼鍒楄〃
+ /// </summary>
static List<System.Threading.Thread> threadLists = new List<System.Threading.Thread>();
+ /// <summary>
+ /// 绉婚櫎绾跨▼
+ /// </summary>
static void clearA31Threads()
{
var threads = threadLists.FindAll((obj) => { return obj.Name == "A31"; });
@@ -30,6 +43,7 @@
threadLists.Remove(thread);
if (thread.IsAlive)
{
+ ///寮哄埗绾跨▼鎶涘紓甯�
thread.Abort();
}
}
@@ -39,18 +53,19 @@
}
}
}
-
-
/// <summary>
/// 鏄剧ず鍔犺浇鐣岄潰
/// </summary>
public static Loading loading = new Loading();
+ /// <summary>
+ /// 瀹氫箟鍏ㄥ眬瀵硅薄
+ /// </summary>
VerticalRefreshLayout verticalRefresh;
-
public void Show()
{
+
#region 鐣岄潰甯冨眬
- this.BackgroundColor = Color.ViewColor;
+ this.BackgroundColor = MusicColor.ViewColor;
var topView = new TopView();
this.AddChidren(topView.TopFLayoutView());
topView.topNameBtn.TextID =StringId.a31Music;
@@ -129,7 +144,10 @@
});
}
}
-
+ /// <summary>
+ /// 鍒锋柊鎾斁鍣ㄥ垪琛�
+ /// </summary>
+ /// <param name="Yes">鏄惁鏄剧ず鍒锋柊鍥炬爣</param>
void SeachMusic(bool Yes = false)
{
for (int i = 0; i < A31MusicModel.A31MusicModelList.Count; i++)
@@ -216,7 +234,6 @@
musicView.singerBtn.Text = a31player.A31PlayStatus.Artist;
musicView.songNameBtn.Text = a31player.A31PlayStatus.Title;
musicView.musicNameBtn.Text = new View.DialogView { }.NamePlayer(a31player);
-
if (a31player.IsEnd)
{
musicView.muiscFl.Height = Application.GetRealHeight(12 + 139 + 12);
@@ -254,7 +271,7 @@
{
if (a31player.ServerClientType == 0)
{
- new View.DialogView { }.PlayMergence();
+ new View.DialogView { }.PlayMergence(a31player);
}
else if (a31player.ServerClientType == 1)
{
@@ -371,8 +388,6 @@
musicThread.Start();
threadLists.Add(musicThread);
}
-
-
/// <summary>
/// 璇诲彇涓讳粠鍏崇郴
/// </summary>
--
Gitblit v1.8.0