private IsolatedStorageFile GetIsolatedStorageScope()
{
if (AppDomain.CurrentDomain != null && AppDomain.CurrentDomain.ActivationContext != null)
{
return IsolatedStorageFile.GetUserStoreForApplication();
}
else
{
return IsolatedStorageFile.GetUserStoreForAssembly();
}
}