-
Notifications
You must be signed in to change notification settings - Fork 170
Expand file tree
/
Copy pathButtonEventNode.cs
More file actions
36 lines (31 loc) · 984 Bytes
/
ButtonEventNode.cs
File metadata and controls
36 lines (31 loc) · 984 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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<ButtonEventNode>));
}
public ValueListNodeInputViewModel<IStatement> OnClickFlow { get; }
public ButtonEventNode() : base(NodeType.EventNode)
{
this.Name = "Button Events";
OnClickFlow = new CodeGenListInputViewModel<IStatement>(PortType.Execution)
{
Name = "On Click"
};
this.EditableInputs().Add(OnClickFlow);
}
}
}