using DynamicData; using Intromat.Model.Compiler; using Intromat.PersistentModel; using Intromat.ViewModels; using Intromat.Views; using NodeNetwork.Toolkit.ValueNode; using ReactiveUI; using Splat; namespace Intromat.Nodes { public class MainEntryPointNode : CodeGenNodeViewModel { static MainEntryPointNode() { Locator.CurrentMutable.Register(() => new CodeGenNodeView(), typeof(IViewFor)); } public MainEntryPointNode() : base(NodeType.Special) { Name = "Main"; OnClickFlow = new CodeGenInputViewModel(EPortType.Execution) { Name = "Entry point" }; Inputs.Add(OnClickFlow); } public ValueNodeInputViewModel OnClickFlow { get; } public override NodeModelBase CreateModel() { return new MainEntryPointModel(); } } }