2025-05-28 23:19:00 +08:00
|
|
|
|
using Serein.Library.Api;
|
|
|
|
|
|
using Serein.NodeFlow.Model;
|
2025-07-29 14:25:31 +08:00
|
|
|
|
using Serein.NodeFlow.Model.Nodes;
|
2025-03-18 11:52:54 +08:00
|
|
|
|
using Serein.Workbench.Node.ViewModel;
|
|
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
using System.Windows;
|
|
|
|
|
|
using System.Windows.Controls;
|
|
|
|
|
|
using System.Windows.Data;
|
|
|
|
|
|
using System.Windows.Documents;
|
|
|
|
|
|
using System.Windows.Input;
|
|
|
|
|
|
using System.Windows.Media;
|
|
|
|
|
|
using System.Windows.Media.Imaging;
|
|
|
|
|
|
using System.Windows.Navigation;
|
|
|
|
|
|
using System.Windows.Shapes;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Serein.Workbench.Node.View
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// NetScriptNodeControl.xaml 的交互逻辑
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public partial class NetScriptNodeControl : NodeControlBase , INodeJunction
|
|
|
|
|
|
{
|
|
|
|
|
|
public NetScriptNodeControl()
|
|
|
|
|
|
{
|
2025-05-28 23:19:00 +08:00
|
|
|
|
|
|
|
|
|
|
var env = App.GetService<IFlowEnvironment>();
|
2025-07-29 14:25:31 +08:00
|
|
|
|
base.ViewModel = new NetScriptNodeControlViewModel(new SingleNetScriptNode(env))
|
|
|
|
|
|
{
|
|
|
|
|
|
IsEnabledOnView = false
|
|
|
|
|
|
};
|
2025-03-18 11:52:54 +08:00
|
|
|
|
base.DataContext = ViewModel;
|
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public NetScriptNodeControl(NetScriptNodeControlViewModel viewModel) : base(viewModel)
|
|
|
|
|
|
{
|
|
|
|
|
|
DataContext = viewModel;
|
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 入参控制点(可能有,可能没)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
JunctionControlBase INodeJunction.ExecuteJunction => this.ExecuteJunctionControl;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 下一个调用方法控制点(可能有,可能没)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
JunctionControlBase INodeJunction.NextStepJunction => this.NextStepJunctionControl;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 返回值控制点(可能有,可能没)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
JunctionControlBase INodeJunction.ReturnDataJunction => throw new Exception();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public JunctionControlBase[] ArgDataJunction => [];
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|