/// <summary> /// Initializes the GlobalSettings class. Also reads the stored cache mode setting. /// </summary> public static void Initialize() { // Create objects for the objects that we need. PairedDevices = new List<BeDeviceModel>(); ParserLookupTable = new CharacteristicParserLookupTable(); ServiceDictionaryUnknown = new ServiceDictionary(); ServiceDictionaryConstant = new ServiceDictionary(); CharacteristicDictionaryUnknown = new CharacteristicDictionary(); CharacteristicDictionaryConstant = new CharacteristicDictionary(); ServiceDictionaryConstant.InitAsConstant(); CharacteristicDictionaryConstant.InitAsConstant(); DictionariesCleared = false; CharacteristicsWithActiveToast = new List<BeCharacteristicModel>(); _useCachedMode = ApplicationData.Current.LocalSettings.Values.ContainsKey(USE_CACHED_MODE); }
/// <summary> /// Initializes the GlobalSettings class. Also reads the stored cache mode setting. /// </summary> public static void Initialize() { // Create objects for the objects that we need. PairedDevices = new List <BeDeviceModel>(); ParserLookupTable = new CharacteristicParserLookupTable(); ServiceDictionaryUnknown = new ServiceDictionary(); ServiceDictionaryConstant = new ServiceDictionary(); CharacteristicDictionaryUnknown = new CharacteristicDictionary(); CharacteristicDictionaryConstant = new CharacteristicDictionary(); ServiceDictionaryConstant.InitAsConstant(); CharacteristicDictionaryConstant.InitAsConstant(); DictionariesCleared = false; CharacteristicsWithActiveToast = new List <BeCharacteristicModel>(); _useCachedMode = ApplicationData.Current.LocalSettings.Values.ContainsKey(USE_CACHED_MODE); }