33 lines
684 B
C#
33 lines
684 B
C#
using CommunityToolkit.Mvvm.ComponentModel;
|
|
using DMS.Application.DTOs;
|
|
using DMS.Core.Enums;
|
|
using System.Collections.ObjectModel;
|
|
using System.Linq;
|
|
|
|
namespace DMS.WPF.ViewModels.Items;
|
|
|
|
public partial class VariableTableItemViewModel : ObservableObject
|
|
{
|
|
public int Id { get; set; }
|
|
|
|
[ObservableProperty]
|
|
private string _name;
|
|
|
|
[ObservableProperty]
|
|
private string _description;
|
|
|
|
[ObservableProperty]
|
|
private bool _isActive=true;
|
|
|
|
[ObservableProperty]
|
|
private int _deviceId;
|
|
|
|
[ObservableProperty]
|
|
private ProtocolType _protocol;
|
|
|
|
[ObservableProperty]
|
|
private ObservableCollection<VariableItemViewModel> _variables = new();
|
|
|
|
|
|
}
|