using CommunityToolkit.Mvvm.ComponentModel; namespace AIK.ViewModels.IDCardCopy; public partial class CardInfoItem : ObservableObject { [ObservableProperty] private string _title = string.Empty; [ObservableProperty] private string _cardType = "--"; [ObservableProperty] private string _cardNumber = "--"; [ObservableProperty] private string _uid = "--"; [ObservableProperty] private string _protocol = "--"; [ObservableProperty] private string _frequency = "--"; [ObservableProperty] private string _sectorCount = "--"; [ObservableProperty] private string _writableStatus = "--"; [ObservableProperty] private string _currentStatus = "--"; public CardInfoItem Clone() { return new CardInfoItem { Title = Title, CardType = CardType, CardNumber = CardNumber, Uid = Uid, Protocol = Protocol, Frequency = Frequency, SectorCount = SectorCount, WritableStatus = WritableStatus, CurrentStatus = CurrentStatus }; } }