22 lines
544 B
C#
22 lines
544 B
C#
using cfs_tracker.Services;
|
|
using CommunityToolkit.Mvvm.ComponentModel;
|
|
|
|
namespace cfs_tracker.ViewModels;
|
|
|
|
public partial class SymptomManageItemViewModel : ObservableObject
|
|
{
|
|
public int Id { get; init; }
|
|
|
|
[ObservableProperty]
|
|
private string name = string.Empty;
|
|
|
|
[ObservableProperty]
|
|
private bool isActive;
|
|
|
|
public bool IsUsed { get; init; }
|
|
|
|
public string UsageHint => IsUsed
|
|
? LocalizationService.Translate("Options_UsageHint_Used")
|
|
: LocalizationService.Translate("Options_UsageHint_Unused");
|
|
}
|