202508081823

Env 加入 sshost1
PlayState.Skipped 調整 為 刪除
手劃到選單上不顯示顏色
已點歌曲不會刪除 而移到完成
This commit is contained in:
jasonchenwork 2025-08-11 10:42:06 +08:00
parent 1e8ce73964
commit 8ca1dfcb2e
6 changed files with 13 additions and 23 deletions

View File

@ -103,22 +103,11 @@ namespace DBObj
}
public Color GetStateColor(){
Color c = Color.White;
if (state == PlayState.Played)
{
c = Color.Gray;//Color.FromArgb(200, 75, 125); // 播畢顏色:紫紅色
}
else if (state == PlayState.NoFile)
{
c = Color.Gray;
}
else if (state == PlayState.Playing)
{
c = Color.LimeGreen;
}
else if (state == PlayState.InsertPlayback)
{
c = Color.Gold;
}
if (state == PlayState.Played) c = Color.Gray;//Color.FromArgb(200, 75, 125); // 播畢顏色:紫紅色
else if (state == PlayState.Skipped)c = Color.Gray;
else if (state == PlayState.NoFile)c = Color.Gray;
else if (state == PlayState.Playing)c = Color.LimeGreen;
else if (state == PlayState.InsertPlayback)c = Color.Gold;
return c;
}
public string GetStateTxt(bool IsSimplified){

View File

@ -103,8 +103,8 @@ namespace DBObj
public static void Cancel(SongData song)
{
not_played.Remove(song);
played.Remove(song);
chkCut();
song.SetState(PlayState.Skipped);
played.Add(song);
}
public static void Insert(SongData song)

1
Env.cs
View File

@ -10,6 +10,7 @@ namespace Utils
private static readonly List<string> KtvPaths = new()
{
@"\\sshost\KTVSuperstar",
@"\\sshost1\KTVSuperstar",
@"\\pc101\KTVSuperstar"
};

View File

@ -19,7 +19,7 @@ namespace DualScreenDemo
[LocalizedDescription("無文件", "无文件")]
NoFile,
[LocalizedDescription("已跳過", "已跳过")]
[LocalizedDescription("刪除", "删除")]
Skipped
}

View File

@ -333,7 +333,7 @@ namespace DualScreenDemo
EventHandler mouseEnter = (sender, e) =>
{
// 變更歌手名稱為黃色
artistLabel.ForeColor = Color.Yellow;
//artistLabel.ForeColor = Color.Yellow;
// 增強分隔線的亮度,使其更明顯
separatorPanel.BackColor = Color.FromArgb(120, 255, 255, 255);
@ -522,8 +522,8 @@ namespace DualScreenDemo
// 定義滑鼠進入 (MouseEnter) 事件的處理程序
EventHandler mouseEnter = (sender, e) =>
{
songLabel.ForeColor = Color.Yellow;
artistLabel.ForeColor = Color.Yellow;
//songLabel.ForeColor = Color.Yellow;
//artistLabel.ForeColor = Color.Yellow;
separatorPanel.BackColor = Color.FromArgb(120, 255, 255, 255);
};

View File

@ -13,7 +13,7 @@ namespace DualScreenDemo
private static PrimaryForm primaryForm; // 儲存實例的參考
public static Room room = new Room();
public static string verSion = "Server V2.8 202508081600";
public static string verSion = "Server V2.8 202508081823";
[STAThread]
static void Main()