2017-11-29 19:13:38 +01:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using ModernKeePass.Services;
|
2017-11-28 16:57:16 -05:00
|
|
|
|
|
|
|
|
|
namespace ModernKeePass.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class SettingsNewVm
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public bool IsCreateSample
|
|
|
|
|
{
|
2017-11-29 19:13:38 +01:00
|
|
|
|
get { return SettingsService.GetSetting<bool>("Sample"); }
|
|
|
|
|
set { SettingsService.PutSetting("Sample", value); }
|
2017-11-28 16:57:16 -05:00
|
|
|
|
}
|
|
|
|
|
|
2017-11-29 19:13:38 +01:00
|
|
|
|
public IEnumerable<string> FileFormats => new []{"2", "4"};
|
2017-11-28 16:57:16 -05:00
|
|
|
|
|
2017-11-29 19:13:38 +01:00
|
|
|
|
public string FileFormatVersion
|
2017-11-28 16:57:16 -05:00
|
|
|
|
{
|
2017-11-29 19:13:38 +01:00
|
|
|
|
get { return SettingsService.GetSetting<string>("DefaultFileFormat"); }
|
|
|
|
|
set { SettingsService.PutSetting("DefaultFileFormat", value); }
|
2017-11-28 16:57:16 -05:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|