private void ParseConfig() { try { FileIOHelper oFileHelper = new FileIOHelper(); List<SettingInfo> lstSettingInfo = oFileHelper.ReadFromDefaultFile("ms-appx:///Assets/config.json");//Call to helper file for getting the details deviceConnectionString = lstSettingInfo.Single(s => s.keyName == "DeviceConnectionString").keyValue; enabled = bool.Parse(lstSettingInfo.Single(s => s.keyName == "Enabled").keyValue); } catch (Exception ex) { } }
private void ParseConfig() { try { FileIOHelper oFileHelper = new FileIOHelper(); List <SettingInfo> lstSettingInfo = oFileHelper.ReadFromDefaultFile("ms-appx:///Assets/config.json");//Call to helper file for getting the details deviceConnectionString = lstSettingInfo.Single(s => s.keyName == "DeviceConnectionString").keyValue; enabled = bool.Parse(lstSettingInfo.Single(s => s.keyName == "Enabled").keyValue); } catch (Exception ex) { } }