Data model - Hide ActivePaths property

This commit is contained in:
Robert committed 2021-06-13 21:49:54 +02:00
1 parent a7c7d74e03
commit 18ae7b70b0
2 files changed
+3 -4

No files matched your search

@@ -57,6 +57,7 @@ namespace Artemis.Core.Modules
/// <summary>
/// Gets a read-only list of <see cref="DataModelPath" />s targeting this data model
/// </summary>
[DataModelIgnore]
public ReadOnlyCollection<DataModelPath> ActivePaths => _activePaths.AsReadOnly();
/// <summary>
@@ -62,9 +62,8 @@ namespace Artemis.UI.Screens.ProfileEditor.Conditions
protected override List<DataModelPropertiesViewModel> GetExtraRightSideDataModelViewModels()
{
// Extra data models are expected to not have an empty root, so lets return the child
BindableCollection<DataModelVisualizationViewModel> children = GetEventDataModel().Children;
return children.Cast<DataModelPropertiesViewModel>().ToList();
// Only the VM housing the event arguments is expected here which is a DataModelPropertiesViewModel
return GetEventDataModel().Children.Cast<DataModelPropertiesViewModel>().ToList();
}
private DataModelPropertiesViewModel GetEventDataModel()
@@ -78,7 +77,6 @@ namespace Artemis.UI.Screens.ProfileEditor.Conditions
public override void Evaluate()
{
throw new NotImplementedException();
}
}
}