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 CodeGenOutputViewModel : ValueNodeOutputViewModel { static CodeGenOutputViewModel() { Splat.Locator.CurrentMutable.Register(() => new NodeOutputView(), typeof(IViewFor>)); } public CodeGenOutputViewModel(PortType type) { this.Port = new CodeGenPortViewModel { PortType = type }; if (type == PortType.Execution) { this.PortPosition = PortPosition.Left; } } } }