移除 warning ,OverlayFormObj 20250319
This commit is contained in:
parent
2085078847
commit
d76bad8c38
@ -8,6 +8,7 @@ using System.Windows.Forms;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using DBObj;
|
||||
using OverlayFormObj;
|
||||
namespace DualScreenDemo
|
||||
{
|
||||
public class CommandHandler
|
||||
|
@ -262,26 +262,17 @@ namespace DBObj
|
||||
string artistB = reader["歌星 B"].ToString();
|
||||
string artistACategory = reader["歌星A分類"].ToString();
|
||||
string artistBCategory = reader["歌星B分類"].ToString();
|
||||
string dateValue = reader["新增日期"].ToString();
|
||||
string dateValue = reader["新增日期"]?.ToString() ?? "";
|
||||
DateTime addedTime;
|
||||
|
||||
if (string.IsNullOrWhiteSpace(dateValue))
|
||||
try
|
||||
{
|
||||
// Console.WriteLine(String.Format("Date value is null or empty for song: {0}. Setting to default DateTime.", song));
|
||||
addedTime = DateTime.Now;
|
||||
addedTime=DateTime.Parse(dateValue, CultureInfo.InvariantCulture).Date ;
|
||||
}
|
||||
else
|
||||
catch (System.FormatException)
|
||||
{
|
||||
try
|
||||
{
|
||||
addedTime = DateTime.ParseExact(dateValue, "yyyy-MM-dd", CultureInfo.InvariantCulture);
|
||||
}
|
||||
catch (System.FormatException ex)
|
||||
{
|
||||
//Console.WriteLine(String.Format("Invalid date format for song: {0}. Error: {1}", song, ex.Message));
|
||||
addedTime = DateTime.Now;
|
||||
}
|
||||
addedTime = DateTime.Today;
|
||||
}
|
||||
addedTime = DateTime.Today;
|
||||
string basePathHost1 = reader["路徑 1"].ToString();
|
||||
string basePathHost2 = reader["路徑 2"].ToString();
|
||||
string fileName = reader["歌曲檔名"].ToString();
|
||||
|
@ -18,6 +18,7 @@ using ZXingAction = ZXing.Action;
|
||||
using System.Threading;
|
||||
using System.Collections.Concurrent;
|
||||
using DBObj;
|
||||
using OverlayFormObj;
|
||||
namespace DualScreenDemo
|
||||
{
|
||||
public class HttpServer
|
||||
|
@ -3,8 +3,8 @@ using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace DualScreenDemo
|
||||
using DualScreenDemo;
|
||||
namespace OverlayFormObj
|
||||
{
|
||||
public partial class OverlayForm
|
||||
{
|
@ -8,7 +8,8 @@ using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using DBObj;
|
||||
namespace DualScreenDemo
|
||||
using DualScreenDemo;
|
||||
namespace OverlayFormObj
|
||||
{
|
||||
public partial class OverlayForm
|
||||
{
|
@ -13,7 +13,8 @@ using ZXing;
|
||||
using ZXing.QrCode;
|
||||
using System.Timers;
|
||||
using DBObj;
|
||||
namespace DualScreenDemo
|
||||
using DualScreenDemo;
|
||||
namespace OverlayFormObj
|
||||
{
|
||||
public partial class OverlayForm : Form
|
||||
{
|
@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
|
||||
using OverlayFormObj;
|
||||
namespace DualScreenDemo
|
||||
{
|
||||
public partial class PrimaryForm : Form
|
||||
|
@ -4,6 +4,7 @@ using System.Windows.Forms;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using DBObj;
|
||||
using OverlayFormObj;
|
||||
namespace DualScreenDemo
|
||||
{
|
||||
public partial class PrimaryForm
|
||||
|
@ -12,6 +12,7 @@ using Microsoft.Ink;
|
||||
using System.Text.RegularExpressions;
|
||||
using WMPLib;
|
||||
using DBObj;
|
||||
using OverlayFormObj;
|
||||
namespace DualScreenDemo
|
||||
{
|
||||
public partial class PrimaryForm : Form
|
||||
@ -2777,12 +2778,9 @@ private void RefreshDisplayBase()
|
||||
|
||||
|
||||
|
||||
public async void OriginalSongButton_Click(object sender, EventArgs e)
|
||||
public void OriginalSongButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
videoPlayerForm.ToggleVocalRemoval();
|
||||
|
||||
|
||||
videoPlayerForm.ToggleVocalRemoval();
|
||||
}
|
||||
|
||||
private void ReplayButton_Click(object sender, EventArgs e)
|
||||
|
@ -9,6 +9,7 @@ using System.IO; // 為 Path 和 File 提供支持
|
||||
using System.Windows.Forms; // 為 Invoke 和 Form 控件提供支持
|
||||
using System.Collections.Generic;
|
||||
using DBObj;
|
||||
using OverlayFormObj;
|
||||
namespace DualScreenDemo
|
||||
{
|
||||
public class TCPServer
|
||||
|
@ -8,6 +8,7 @@ using System.Windows.Forms;
|
||||
using System.Threading.Tasks;
|
||||
using DirectShowLib;
|
||||
using DBObj;
|
||||
using OverlayFormObj;
|
||||
namespace DualScreenDemo
|
||||
{
|
||||
public class VideoPlayerForm : Form
|
||||
@ -1571,12 +1572,6 @@ namespace DualScreenDemo
|
||||
DsUtils.FreeAMMediaType(mediaType);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
Reference in New Issue
Block a user