mirror of
https://github.com/digital-jellyfish/Virtu.git
synced 2024-06-02 12:41:31 +00:00
bc4caaf2b1
--HG-- extra : convert_revision : svn%3Affd33b8c-2492-42e0-bdc5-587b920b7d6d/trunk%4046550
20 lines
558 B
C#
20 lines
558 B
C#
using System.Deployment.Application;
|
|
using System.IO.IsolatedStorage;
|
|
|
|
namespace Jellyfish.Virtu.Services
|
|
{
|
|
public sealed class WpfStorageService : IsolatedStorageService
|
|
{
|
|
public WpfStorageService(Machine machine) :
|
|
base(machine)
|
|
{
|
|
}
|
|
|
|
protected override IsolatedStorageFile GetStore()
|
|
{
|
|
return ApplicationDeployment.IsNetworkDeployed ? // clickonce
|
|
IsolatedStorageFile.GetUserStoreForApplication() : IsolatedStorageFile.GetUserStoreForAssembly();
|
|
}
|
|
}
|
|
}
|