diff --git a/Seyounth.Hyosung.Runtime/Models/StackStationModel.cs b/Seyounth.Hyosung.Runtime/Models/StackStationModel.cs index 5e5b23e..2ba2c04 100644 --- a/Seyounth.Hyosung.Runtime/Models/StackStationModel.cs +++ b/Seyounth.Hyosung.Runtime/Models/StackStationModel.cs @@ -1,19 +1,24 @@ using System.Collections.ObjectModel; +using System.ComponentModel; +using CommunityToolkit.Mvvm.ComponentModel; using Seyounth.Hyosung.Data.Models; namespace Seyounth.Hyosung.Runtime.Models; -public class StackStationModel +[INotifyPropertyChanged] +public partial class StackStationModel { - public string TrayCode { get; set; } = "NoData"; + [ObservableProperty] [DefaultValue("NoData")] + private string trayCode; - public string VarietyCode { get; set; } = "NoData"; + [ObservableProperty] [DefaultValue("NoData")] + private string varietyCode; - public int Layers { get; set; } + [ObservableProperty] private int layers; - public int TotalCount { get; set; } + [ObservableProperty] private int totalCount; - public int CurrentCount { get; set; } + [ObservableProperty] private int currentCount; - public ObservableCollection Yarns { get; set; } = new(); + [ObservableProperty] private ObservableCollection yarns = new(); } \ No newline at end of file