Files
SteamTools/System.Application.SteamTools.Client.Desktop/Models/Settings/UISettings.cs
T
2021-03-06 11:01:13 +08:00

32 lines
886 B
C#

using System;
using System.Application.Serialization;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
namespace System.Application.Models.Settings
{
public static class UISettings
{
/// <summary>
/// Ö÷Ìâ
/// </summary>
public static SerializableProperty<short> Theme { get; }
= new SerializableProperty<short>(GetKey(), Providers.Local) { AutoSave = true };
/// <summary>
/// ÓïÑÔ
/// </summary>
public static SerializableProperty<string> Language { get; }
= new SerializableProperty<string>(GetKey(), Providers.Local) { AutoSave = true };
private static string GetKey([CallerMemberName] string propertyName = "")
{
return nameof(UISettings) + "." + propertyName;
}
}
}