public List <sconnAlarmZone> GetAll() { if (Online) { EntityManager.Download(); } return(ConfigManager.Config.ZoneConfig.Zones.ToList()); }
public List <sconnAuthorizedDevice> GetAll() { if (Online) { EntityManager.Download(); } return(ConfigManager.Config.AuthorizedDevices.Devices.ToList()); }
public List <sconnUser> GetAll() { if (Online) { EntityManager.Download(); } return(ConfigManager.Config.UserConfig.Users.ToList()); }
public List <sconnGsmRcpt> GetAll() { if (Online) { EntityManager.Download(); } return(ConfigManager.Config.GsmConfig.Rcpts.ToList()); }
public sconnDevice Get() { if (Online) { EntityManager.Download(); } return(ConfigManager.Config.DeviceConfig.Device); }
public sconnGlobalConfig Get() { if (Online) { EntityManager.Download(); } return(ConfigManager.Config.GlobalConfig); }
private void LoadDeviceConfigs() { sconnGlobalConfig glob = new sconnGlobalConfig(); AlarmGenericConfigManager <sconnGlobalConfig> gbman = new AlarmGenericConfigManager <sconnGlobalConfig>(glob, ConfigManager.RemoteDevice); gbman.Download(); DeviceNo = glob.Devices; DeviceConfigs = new List <sconnDevice>(); for (int i = 0; i < DeviceNo; i++) { sconnDeviceConfig dev = new sconnDeviceConfig(); AlarmGenericConfigManager <sconnDeviceConfig> dman = new AlarmGenericConfigManager <sconnDeviceConfig>(dev, ConfigManager.RemoteDevice, i); dman.Download(); DeviceConfigs.Add(dev.Device); } }
public List <sconnEvent> GetAll() { EntityManager.Download(); return(ConfigManager.Config.EventConfig.Events.ToList()); }