Adding equipment works
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
using System.Collections.ObjectModel;
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using GazpromApp.Models;
|
||||
|
||||
namespace GazpromApp.ViewModels;
|
||||
|
||||
public partial class PropertyViewModel : ViewModelBase
|
||||
{
|
||||
[ObservableProperty]
|
||||
private string _name;
|
||||
|
||||
[ObservableProperty]
|
||||
private string _value;
|
||||
|
||||
public ObservableCollection<PropertyViewModel> Properties { get; set; } = [];
|
||||
|
||||
public PropertyViewModel()
|
||||
{
|
||||
Name = string.Empty;
|
||||
Value = string.Empty;
|
||||
}
|
||||
|
||||
public PropertyViewModel(Property property)
|
||||
{
|
||||
Name = property.Name;
|
||||
Value = property.Value;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user