2023-05-11 23:11:39 -04:00
|
|
|
using Avalonia;
|
|
|
|
using Avalonia.Controls;
|
|
|
|
|
2023-07-12 09:19:33 +02:00
|
|
|
namespace SPTInstaller.CustomControls;
|
|
|
|
|
|
|
|
public partial class PreCheckItem : UserControl
|
2023-05-11 23:11:39 -04:00
|
|
|
{
|
2023-07-12 09:19:33 +02:00
|
|
|
public PreCheckItem()
|
|
|
|
{
|
|
|
|
InitializeComponent();
|
|
|
|
}
|
|
|
|
|
|
|
|
public string PreCheckName
|
2023-05-11 23:11:39 -04:00
|
|
|
{
|
2023-07-12 09:19:33 +02:00
|
|
|
get => GetValue(PreCheckNameProperty);
|
|
|
|
set => SetValue(PreCheckNameProperty, value);
|
2023-05-11 23:11:39 -04:00
|
|
|
}
|
2023-07-12 09:19:33 +02:00
|
|
|
|
|
|
|
public static readonly StyledProperty<string> PreCheckNameProperty =
|
|
|
|
AvaloniaProperty.Register<PreCheckItem, string>(nameof(PreCheckName));
|
|
|
|
|
|
|
|
public bool IsRunning
|
|
|
|
{
|
|
|
|
get => GetValue(IsRunningProperty);
|
|
|
|
set => SetValue(IsRunningProperty, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static readonly StyledProperty<bool> IsRunningProperty =
|
|
|
|
AvaloniaProperty.Register<PreCheckItem, bool>(nameof(IsRunning));
|
|
|
|
|
|
|
|
public bool IsPending
|
|
|
|
{
|
|
|
|
get => GetValue(IsPendingProperty);
|
|
|
|
set => SetValue(IsPendingProperty, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static readonly StyledProperty<bool> IsPendingProperty =
|
|
|
|
AvaloniaProperty.Register<PreCheckItem, bool>(nameof(IsPending));
|
|
|
|
|
|
|
|
public bool Passed
|
|
|
|
{
|
|
|
|
get => GetValue(PassedProperty);
|
|
|
|
set => SetValue(PassedProperty, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static readonly StyledProperty<bool> PassedProperty =
|
|
|
|
AvaloniaProperty.Register<PreCheckItem, bool>(nameof(Passed));
|
|
|
|
|
|
|
|
public bool IsRequired
|
|
|
|
{
|
|
|
|
get => GetValue(IsRequiredProperty);
|
|
|
|
set => SetValue(IsRequiredProperty, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static readonly StyledProperty<bool> IsRequiredProperty =
|
|
|
|
AvaloniaProperty.Register<PreCheckItem, bool>(nameof(IsRequired));
|
|
|
|
}
|