public bool readStringSettingsfromLocalStorage(Windows.Storage.ApplicationDataCompositeValue composite, string Key, out string value) { value = ""; Object outvalue; bool bKey = composite.TryGetValue(Key, out outvalue); if (!bKey) { return(false); } value = (string)outvalue; return(true); }
public bool readSettingsfromLocalStorage(Windows.Storage.ApplicationDataCompositeValue composite, int Idx) { String key = getCompositePropertyIDName("m_DataCompositeIDName", Idx); Object outvalue; bool bKey = composite.TryGetValue(key, out outvalue); if (!bKey) { return(false); } string retValue = (string)outvalue; if (String.Compare(retValue, m_DataCompositeIDName) == 0) { return(true); } m_DataCompositeIDName = (string)outvalue; return(false); }