增加摄像头中控台项目

This commit is contained in:
2025-12-30 10:53:02 +08:00
parent 471b8c50b6
commit de3adf0339
31 changed files with 2736 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
namespace SHH.CameraDashboard
{
// 2. 全局配置存储
public static class AppGlobalData
{
public static List<ServerNode> ActiveServerList { get; private set; } = new List<ServerNode>();
public static void SaveConfig(IEnumerable<ServerNode> nodes)
{
ActiveServerList.Clear();
foreach (var node in nodes)
{
ActiveServerList.Add(new ServerNode { Ip = node.Ip, Port = node.Port });
}
}
}
}