using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using DynamicData; using ExampleCodeGenApp.Model.Compiler; using ExampleCodeGenApp.Views; using NodeNetwork.Toolkit.ValueNode; using NodeNetwork.ViewModels; using ReactiveUI; namespace ExampleCodeGenApp.ViewModels.Nodes { public class ButtonEventNode : CodeGenNodeViewModel { static ButtonEventNode() { Splat.Locator.CurrentMutable.Register(() => new CodeGenNodeView(), typeof(IViewFor)); } public ValueListNodeInputViewModel OnClickFlow { get; } public ButtonEventNode() : base(NodeType.EventNode) { this.Name = "Button Events"; OnClickFlow = new CodeGenListInputViewModel(PortType.Execution) { Name = "On Click" }; this.Inputs.Add(OnClickFlow); } } }