Code
public void SaveToIsolatedStorage(string pKey, string pValue)
{
IsolatedStorageSettings vAppSettings = IsolatedStorageSettings.ApplicationSettings;
if(vAppSettings.Contains(pKey))
{
vAppSettings[pKey] = pValue;
}
else
{
vAppSettings.Add(pKey, pValue);
}
vAppSettings.Save();
}
public string ReadFromIsolatedStorage(string pKey)
{
string vRtn = string.Empty;
IsolatedStorageSettings vAppSettings = IsolatedStorageSettings.ApplicationSettings;
if(vAppSettings.Contains(pKey))
{
vRtn = vAppSettings[pKey];
}
return vRtn;
}
public void SaveToIsolatedStorage(string pKey, string pValue)
{
IsolatedStorageSettings vAppSettings = IsolatedStorageSettings.ApplicationSettings;
if(vAppSettings.Contains(pKey))
{
vAppSettings[pKey] = pValue;
}
else
{
vAppSettings.Add(pKey, pValue);
}
vAppSettings.Save();
}
public string ReadFromIsolatedStorage(string pKey)
{
string vRtn = string.Empty;
IsolatedStorageSettings vAppSettings = IsolatedStorageSettings.ApplicationSettings;
if(vAppSettings.Contains(pKey))
{
vRtn = vAppSettings[pKey];
}
return vRtn;
}