2024-08-06 15:41:14 +08:00
|
|
|
|
using Serein.Flow;
|
|
|
|
|
|
using Serein.Flow.NodeModel;
|
2024-08-05 10:11:58 +08:00
|
|
|
|
using Serein.WorkBench.Node.ViewModel;
|
|
|
|
|
|
using static Serein.WorkBench.MainWindow;
|
|
|
|
|
|
using System.Windows.Controls;
|
|
|
|
|
|
using System.Windows.Input;
|
|
|
|
|
|
using System.Windows;
|
|
|
|
|
|
using static Dm.net.buffer.ByteArrayBuffer;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Serein.WorkBench.Node.View
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// ConditionNode.xaml 的交互逻辑
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public partial class ConditionNodeControl : NodeControlBase
|
|
|
|
|
|
{
|
2024-08-05 20:32:16 +08:00
|
|
|
|
public ConditionNodeControlViewModel ViewModel { get; }
|
2024-08-05 10:11:58 +08:00
|
|
|
|
|
|
|
|
|
|
public ConditionNodeControl() : base()
|
|
|
|
|
|
{
|
2024-08-05 20:32:16 +08:00
|
|
|
|
|
|
|
|
|
|
ViewModel = new (new ());
|
|
|
|
|
|
DataContext = ViewModel;
|
2024-08-05 10:11:58 +08:00
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public ConditionNodeControl(SingleConditionNode node) : base(node)
|
|
|
|
|
|
{
|
|
|
|
|
|
Node = node;
|
2024-08-05 20:32:16 +08:00
|
|
|
|
ViewModel = new ConditionNodeControlViewModel(node);
|
|
|
|
|
|
DataContext = ViewModel;
|
2024-08-05 10:11:58 +08:00
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|