21 lines
567 B
C#
21 lines
567 B
C#
using Inspectron.Settings;
|
|
|
|
namespace VisionBuilder.UI.Common;
|
|
|
|
public class UIConfiguration: ISettings
|
|
{
|
|
/// <summary>
|
|
/// Max errors to be displayed in the UI.
|
|
/// </summary>
|
|
public int MaxErrorCount { get; set; } = 100;
|
|
|
|
public string AdminPassword { get; set; } = "";
|
|
|
|
public void RegisterSettings(InspectronSettings settings)
|
|
{
|
|
settings.RegisterSimple(this, () => this.MaxErrorCount, "Errors", "Max errors count", "UI");
|
|
settings.RegisterSimple(this, () => this.AdminPassword, "System", "Password", "UI");
|
|
}
|
|
|
|
|
|
} |