2025-07-26 10:05:43 +08:00
|
|
|
using CommunityToolkit.Mvvm.ComponentModel;
|
|
|
|
|
using DMS.Application.DTOs;
|
|
|
|
|
using DMS.Core.Enums;
|
2025-07-27 21:08:58 +08:00
|
|
|
using System.Collections.ObjectModel;
|
|
|
|
|
using System.Linq;
|
2025-07-26 10:05:43 +08:00
|
|
|
|
|
|
|
|
namespace DMS.WPF.ViewModels.Items;
|
|
|
|
|
|
|
|
|
|
public partial class VariableTableItemViewModel : ObservableObject
|
|
|
|
|
{
|
2025-07-30 12:09:00 +08:00
|
|
|
public int Id { get; set; }
|
2025-07-26 10:05:43 +08:00
|
|
|
|
|
|
|
|
[ObservableProperty]
|
|
|
|
|
private string _name;
|
|
|
|
|
|
|
|
|
|
[ObservableProperty]
|
|
|
|
|
private string _description;
|
|
|
|
|
|
|
|
|
|
[ObservableProperty]
|
|
|
|
|
private bool _isActive;
|
|
|
|
|
|
|
|
|
|
[ObservableProperty]
|
|
|
|
|
private int _deviceId;
|
|
|
|
|
|
|
|
|
|
[ObservableProperty]
|
|
|
|
|
private ProtocolType _protocol;
|
|
|
|
|
|
2025-07-27 21:08:58 +08:00
|
|
|
[ObservableProperty]
|
|
|
|
|
private ObservableCollection<VariableItemViewModel> _variables = new();
|
|
|
|
|
|
2025-07-28 11:08:56 +08:00
|
|
|
|
2025-07-26 10:05:43 +08:00
|
|
|
}
|