23 lines
1.0 KiB
C#
23 lines
1.0 KiB
C#
using System;
|
|
|
|
using DynamicData;
|
|
|
|
namespace NodeNetwork.ViewModels
|
|
{
|
|
/// <summary>
|
|
/// The factory method to create endpoint view models. Used in NodeViewModel.
|
|
/// </summary>
|
|
/// <param name="group">The endpoint group this view model wraps.</param>
|
|
/// <param name="allInputs">All inputs of the group.</param>
|
|
/// <param name="allOutputs">All outputs of the group.</param>
|
|
/// <param name="children">Nested endpoint groups.</param>
|
|
/// <param name="endpointGroupViewModelFactory">The factory method used to create the nested endpoint group view models.</param>
|
|
/// <returns>The view model for the endpoint group.</returns>
|
|
public delegate EndpointGroupViewModel EndpointGroupViewModelFactory(
|
|
EndpointGroup group,
|
|
IObservable<IChangeSet<NodeInputViewModel>> allInputs,
|
|
IObservable<IChangeSet<NodeOutputViewModel>> allOutputs,
|
|
IObservableCache<Node<EndpointGroup, EndpointGroup>, EndpointGroup> children,
|
|
EndpointGroupViewModelFactory endpointGroupViewModelFactory);
|
|
}
|