mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-03 00:00:49 +08:00
新增了“全局数据节点”;保存项目文件时,不同节点可以使用自定义数据保存自身独特的数据,不再借用“方法参数”。 重新设计了运行时的环境输出;增量式生成器现在可以选择在属性变更的前后时间点插入自定义代码;重写了加载项目、保存项目的方法。
59 lines
1.8 KiB
C#
59 lines
1.8 KiB
C#
using Serein.NodeFlow.Model;
|
|
using Serein.Workbench.Node.ViewModel;
|
|
|
|
namespace Serein.Workbench.Node.View
|
|
{
|
|
/// <summary>
|
|
/// ConditionNode.xaml 的交互逻辑
|
|
/// </summary>
|
|
public partial class ConditionNodeControl : NodeControlBase, INodeJunction
|
|
{
|
|
public ConditionNodeControl() : base()
|
|
{
|
|
// 窗体初始化需要
|
|
base.ViewModel = new ConditionNodeControlViewModel (new SingleConditionNode(null));
|
|
DataContext = ViewModel;
|
|
InitializeComponent();
|
|
}
|
|
|
|
public ConditionNodeControl(ConditionNodeControlViewModel 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 => this.ResultJunctionControl;
|
|
|
|
/// <summary>
|
|
/// 方法入参控制点(可能有,可能没)
|
|
/// </summary>
|
|
private JunctionControlBase[] argDataJunction;
|
|
/// <summary>
|
|
/// 方法入参控制点(可能有,可能没)
|
|
/// </summary>
|
|
JunctionControlBase[] INodeJunction.ArgDataJunction
|
|
{
|
|
get
|
|
{
|
|
argDataJunction = new JunctionControlBase[1];
|
|
argDataJunction[0] = this.ArgJunctionControl;
|
|
return argDataJunction;
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|