2024-08-06 16:09:46 +08:00
|
|
|
|
using Serein.NodeFlow.Model;
|
2024-10-15 21:56:09 +08:00
|
|
|
|
using Serein.Workbench.Node.ViewModel;
|
2024-08-05 10:11:58 +08:00
|
|
|
|
|
2024-10-15 21:56:09 +08:00
|
|
|
|
namespace Serein.Workbench.Node.View
|
2024-08-05 10:11:58 +08:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// ConditionNode.xaml 的交互逻辑
|
|
|
|
|
|
/// </summary>
|
2024-10-28 21:52:45 +08:00
|
|
|
|
public partial class ConditionNodeControl : NodeControlBase, INodeJunction
|
2024-08-05 10:11:58 +08:00
|
|
|
|
{
|
|
|
|
|
|
public ConditionNodeControl() : base()
|
|
|
|
|
|
{
|
2024-09-12 20:32:54 +08:00
|
|
|
|
// 窗体初始化需要
|
2024-12-12 20:31:50 +08:00
|
|
|
|
base.ViewModel = new ConditionNodeControlViewModel (new SingleConditionNode(null));
|
2024-08-05 20:32:16 +08:00
|
|
|
|
DataContext = ViewModel;
|
2024-08-05 10:11:58 +08:00
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-09-12 20:32:54 +08:00
|
|
|
|
public ConditionNodeControl(ConditionNodeControlViewModel viewModel):base(viewModel)
|
2024-08-05 10:11:58 +08:00
|
|
|
|
{
|
2024-09-12 20:32:54 +08:00
|
|
|
|
DataContext = viewModel;
|
2024-08-05 10:11:58 +08:00
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
}
|
2024-12-09 22:57:06 +08:00
|
|
|
|
|
2024-10-28 21:52:45 +08:00
|
|
|
|
/// <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;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2024-08-05 10:11:58 +08:00
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|