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.
16 lines
490 B
16 lines
490 B
using System; |
|
using System.Threading.Tasks; |
|
using CommunityToolkit.Mvvm.ComponentModel; |
|
|
|
namespace StabilityMatrix.Avalonia.ViewModels.Base; |
|
|
|
public abstract partial class ProgressItemViewModelBase : ViewModelBase |
|
{ |
|
[ObservableProperty] private Guid id; |
|
[ObservableProperty] private string? name; |
|
[ObservableProperty] private bool failed; |
|
|
|
public virtual bool IsCompleted => Progress.Value >= 100 || Failed; |
|
|
|
public ProgressViewModel Progress { get; } = new(); |
|
}
|
|
|