17 lines
504 B
C#
17 lines
504 B
C#
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 });
|
|
}
|
|
}
|
|
}
|
|
} |