static BaseData() { try { string serverNum = System.Configuration.ConfigurationManager.AppSettings["ServerNum"]; DC_Service dC_Service = new DC_Service(); Server = dC_Service.GetDCServer(serverNum); Devices = dC_Service.GetDCDevices(Server, 1); Configs = dC_Service.GetDCDataConfigs(Devices.Select(s => s.ID).ToList(), 1); } catch (Exception) { } }