using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using NodeNetwork.Toolkit.ValueNode; using NodeNetwork.ViewModels; using NodeNetwork.Views; using ReactiveUI; namespace ExampleCodeGenApp.ViewModels { public class CodeGenListInputViewModel : ValueListNodeInputViewModel { static CodeGenListInputViewModel() { Splat.Locator.CurrentMutable.Register(() => new NodeInputView(), typeof(IViewFor>)); } public CodeGenListInputViewModel(PortType type) { this.Port = new CodeGenPortViewModel { PortType = type }; if (type == PortType.Execution) { this.PortPosition = PortPosition.Right; } } } }