Files
cfs-Tracker/ViewModels/ActivityManageItemViewModel.cs
T
Djagor d85f2e0fb3 Farbpalette vorladen lassen
Bootstraper läd jetzt die farbeinstellung sofort und nicht nachträglich

cleanup and rework

PDF switch to HTML

export fix

Colorsystem

Farben für knöpfe hinzugefügt als anpassung

button color

button color primary and secondary change
2026-03-24 21:59:59 +01:00

21 lines
500 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using CommunityToolkit.Mvvm.ComponentModel;
namespace cfs_tracker.ViewModels;
public partial class ActivityManageItemViewModel : 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
? "Bereits verwendet – kann nur deaktiviert werden."
: "Kann gelöscht werden, solange unbenutzt.";
}