public static void ReadConfiguration(String ConfigurationFilename) { if (File.Exists(ConfigurationFilename)) { String jsonfile = File.ReadAllText(ConfigurationFilename); Alarms = JsonConvert.DeserializeObject <AlarmConfiguration>(jsonfile); } }
public static void ReadConfiguration(String ConfigurationFilename) { if (File.Exists(ConfigurationFilename)) { String jsonfile = File.ReadAllText(ConfigurationFilename); Alarms = JsonConvert.DeserializeObject<AlarmConfiguration>(jsonfile); } }