示例#1
0
        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)
            {
            }
        }
示例#2
0
        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)
            {
            }
        }