Code clean up
This commit is contained in:
@@ -26,7 +26,7 @@ public partial class PointViewModel : ViewModelBase
|
||||
[ObservableProperty]
|
||||
private List<Property>? _properties;
|
||||
|
||||
public PointViewModel(Models.Point point)
|
||||
public PointViewModel(Point point)
|
||||
{
|
||||
Name = point.Name;
|
||||
Description = point.Description;
|
||||
@@ -37,14 +37,15 @@ public partial class PointViewModel : ViewModelBase
|
||||
Properties = point.Properties;
|
||||
}
|
||||
|
||||
public Models.Point GetPoint()
|
||||
// ReSharper disable once UnusedMember.Global
|
||||
public Point GetPoint()
|
||||
{
|
||||
return new Models.Point()
|
||||
return new Point
|
||||
{
|
||||
Name = this.Name,
|
||||
Description = this.Description,
|
||||
Equipment = this.Equipment ?? [],
|
||||
Properties = this.Properties ?? [],
|
||||
Name = Name,
|
||||
Description = Description,
|
||||
Equipment = Equipment ?? [],
|
||||
Properties = Properties ?? []
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user