From 52e317b95d830f8cd1156b403ff5a34fb8f9bccb Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期五, 31 七月 2020 17:43:42 +0800 Subject: [PATCH] 2020-7-31-2 --- HDL_ON/UI/UI2/FuntionControlView/Music/UpdateThread.cs | 18 ++++++++++++------ 1 files changed, 12 insertions(+), 6 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/Music/UpdateThread.cs b/HDL_ON/UI/UI2/FuntionControlView/Music/UpdateThread.cs index 2fbe648..e893116 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/Music/UpdateThread.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/Music/UpdateThread.cs @@ -1,21 +1,27 @@ 锘縰sing System; +using System.Collections.Generic; using Shared; using HDL_ON.UI.Music; - namespace HDL_ON.UI.UI2.FuntionControlView.Music { - public class UpdateThread : FrameLayout + public class UpdateThread { public UpdateThread() { } - - public static void updateThread(FrameLayout frame, VerticalRefreshLayout middViewLayout) + /// <summary> + /// 瀹氭椂鏇存柊褰撳墠鎾斁闊充箰 + /// </summary> + /// <param name="frame">褰撳墠鐣岄潰</param> + /// <param name="middViewLayout">姣忎竴鏉¢煶涔愮殑涓绘帶浠�</param> + /// <param name="a31MusicModel">鐐瑰墠鎾斁鍣�</param> + public static void updateThread(FrameLayout frame, VerticalRefreshLayout middViewLayout, A31MusicModel a31MusicModel) { System.Threading.Thread updateSelectedMusicThread = new System.Threading.Thread(() => { while (frame.Parent != null) { + A31MusicModel.LogMusic("宸插惎鍔ㄦ洿鏂伴煶涔愬垪琛ㄦ煇涓�鏉¢煶涔愮姸鎬佺殑绾跨▼"); System.Threading.Thread.Sleep(1000); Application.RunOnMainThread(() => { @@ -23,11 +29,11 @@ { for (int i = 0; i < middViewLayout.ChildrenCount; i++) { - FrameLayout view = (FrameLayout)middViewLayout.GetChildren(i); + RowLayout view = (RowLayout)middViewLayout.GetChildren(i); var volIconBtn = (Button)view.GetChildren(0);//鐩存帴FrameLayout鐖舵帶浠舵壘鍒拌鎺т欢Button var songNameBtn = (Button)view.GetChildren(1);//鐩存帴FrameLayout鐖舵帶浠舵壘鍒拌鎺т欢Button var artistNameBtn = (Button)view.GetChildren(2);//鐩存帴FrameLayout鐖舵帶浠舵壘鍒拌鎺т欢Button - if (A31MusicModel.Current.A31PlayStatus.TrackURL == songNameBtn.Tag.ToString()) + if (a31MusicModel.A31PlayStatus.TrackURL == songNameBtn.Tag.ToString()) { volIconBtn.Visible = true; songNameBtn.TextColor = UI.Music.Color.SelectedColor; -- Gitblit v1.8.0