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