2024-01-11 16:28:22 +00:00
|
|
|
|
using System.Collections.ObjectModel;
|
|
|
|
|
|
|
|
|
|
namespace VPet.Solution.Models.SettingEditor;
|
2023-12-30 14:54:49 +00:00
|
|
|
|
|
2024-01-07 14:57:27 +00:00
|
|
|
|
public class SystemSettingModel : ObservableClass<SystemSettingModel>
|
2023-12-30 14:54:49 +00:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 数据收集是否被禁止(当日)
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool DiagnosisDayEnable { get; } = true;
|
|
|
|
|
|
2024-01-11 16:28:22 +00:00
|
|
|
|
#region AutoSaveInterval
|
2023-12-30 14:54:49 +00:00
|
|
|
|
private int _autoSaveInterval;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 自动保存频率 (min)
|
|
|
|
|
/// </summary>
|
2024-01-11 16:28:22 +00:00
|
|
|
|
[ReflectionProperty(nameof(VPet_Simulator.Windows.Interface.Setting.AutoSaveInterval))]
|
2023-12-30 14:54:49 +00:00
|
|
|
|
public int AutoSaveInterval
|
|
|
|
|
{
|
|
|
|
|
get => _autoSaveInterval;
|
|
|
|
|
set => SetProperty(ref _autoSaveInterval, value);
|
|
|
|
|
}
|
|
|
|
|
|
2024-01-11 16:28:22 +00:00
|
|
|
|
public static ObservableCollection<int> SaveIntervals { get; } =
|
|
|
|
|
new() { -1, 2, 5, 10, 20, 30, 60 };
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region BackupSaveMaxNum
|
2023-12-30 14:54:49 +00:00
|
|
|
|
private int _backupSaveMaxNum;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 备份保存最大数量
|
|
|
|
|
/// </summary>
|
2024-01-11 16:28:22 +00:00
|
|
|
|
[ReflectionProperty(nameof(VPet_Simulator.Windows.Interface.Setting.BackupSaveMaxNum))]
|
2023-12-30 14:54:49 +00:00
|
|
|
|
public int BackupSaveMaxNum
|
|
|
|
|
{
|
|
|
|
|
get => _backupSaveMaxNum;
|
|
|
|
|
set => SetProperty(ref _backupSaveMaxNum, value);
|
|
|
|
|
}
|
2024-01-11 16:28:22 +00:00
|
|
|
|
#endregion
|
2023-12-30 14:54:49 +00:00
|
|
|
|
}
|