2025-05-30 01:02:25 +08:00
|
|
|
|
using Serein.Library;
|
|
|
|
|
|
using Serein.NodeFlow.Model;
|
2024-10-15 21:56:09 +08:00
|
|
|
|
using Serein.Workbench.Node.ViewModel;
|
2025-05-30 01:02:25 +08:00
|
|
|
|
using Serein.Workbench.Themes;
|
2024-08-07 21:17:19 +08:00
|
|
|
|
using System.Runtime.CompilerServices;
|
2024-10-24 23:32:43 +08:00
|
|
|
|
using System.Windows;
|
2024-08-07 21:17:19 +08:00
|
|
|
|
using System.Windows.Controls;
|
2024-10-24 23:32:43 +08:00
|
|
|
|
using System.Windows.Media;
|
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>
|
|
|
|
|
|
/// ActionNode.xaml 的交互逻辑
|
|
|
|
|
|
/// </summary>
|
2024-10-24 23:32:43 +08:00
|
|
|
|
public partial class ActionNodeControl : NodeControlBase, INodeJunction
|
2024-08-05 10:11:58 +08:00
|
|
|
|
{
|
2024-10-23 19:22:27 +08:00
|
|
|
|
public ActionNodeControl(ActionNodeControlViewModel 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
|
|
|
|
if(ExecuteJunctionControl.MyNode != null)
|
|
|
|
|
|
{
|
2025-05-28 23:19:00 +08:00
|
|
|
|
ExecuteJunctionControl.MyNode.Guid = viewModel.NodeModel.Guid;
|
2024-12-09 22:57:06 +08:00
|
|
|
|
}
|
2024-08-05 10:11:58 +08:00
|
|
|
|
}
|
2024-10-23 19:22:27 +08:00
|
|
|
|
|
2024-10-24 23:32:43 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 入参控制点(可能有,可能没)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
JunctionControlBase INodeJunction.ExecuteJunction => this.ExecuteJunctionControl;
|
2024-10-28 10:25:57 +08:00
|
|
|
|
|
2024-10-24 23:32:43 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 下一个调用方法控制点(可能有,可能没)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
JunctionControlBase INodeJunction.NextStepJunction => this.NextStepJunctionControl;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 返回值控制点(可能有,可能没)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
JunctionControlBase INodeJunction.ReturnDataJunction => this.ResultJunctionControl;
|
|
|
|
|
|
|
2025-05-28 23:19:00 +08:00
|
|
|
|
|
|
|
|
|
|
|
2024-10-28 10:25:57 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 方法入参控制点(可能有,可能没)
|
|
|
|
|
|
/// </summary>
|
2025-05-30 01:02:25 +08:00
|
|
|
|
JunctionControlBase[] INodeJunction.ArgDataJunction => GetArgJunction(this, MethodDetailsControl);
|
2024-11-04 23:30:52 +08:00
|
|
|
|
|
2024-08-05 10:11:58 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|