You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
601 B
22 lines
601 B
namespace MyAvaloniaApp.Configuration;
|
|
|
|
/// <summary>
|
|
/// 应用程序设置
|
|
/// </summary>
|
|
public class AppSettings
|
|
{
|
|
public string ApplicationName { get; set; } = "My Avalonia App";
|
|
public string Version { get; set; } = "1.0.0";
|
|
public string Environment { get; set; } = "Development";
|
|
public FeatureSettings Features { get; set; } = new();
|
|
}
|
|
|
|
/// <summary>
|
|
/// 功能设置
|
|
/// </summary>
|
|
public class FeatureSettings
|
|
{
|
|
public bool EnableLogging { get; set; } = true;
|
|
public bool EnableMetrics { get; set; } = false;
|
|
public bool EnableTelemetry { get; set; } = false;
|
|
}
|
|
|