Adding equipment works

This commit is contained in:
retr0volkov
2025-07-04 15:29:23 +03:00 Unverified
parent e4c1ded6ae
commit c0178625cd
31 changed files with 510 additions and 18 deletions
+28
View File
@@ -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;
}
}