mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-03 00:00:49 +08:00
32 lines
772 B
C#
32 lines
772 B
C#
using Serein.NodeFlow.Model;
|
|
using Serein.WorkBench.Node.ViewModel;
|
|
|
|
namespace Serein.WorkBench.Node.View
|
|
{
|
|
/// <summary>
|
|
/// ConditionNode.xaml 的交互逻辑
|
|
/// </summary>
|
|
public partial class ConditionNodeControl : NodeControlBase
|
|
{
|
|
public ConditionNodeControlViewModel ViewModel { get; }
|
|
|
|
public ConditionNodeControl() : base()
|
|
{
|
|
|
|
ViewModel = new (new ());
|
|
DataContext = ViewModel;
|
|
InitializeComponent();
|
|
}
|
|
|
|
public ConditionNodeControl(SingleConditionNode node) : base(node)
|
|
{
|
|
Node = node;
|
|
ViewModel = new ConditionNodeControlViewModel(node);
|
|
DataContext = ViewModel;
|
|
InitializeComponent();
|
|
}
|
|
|
|
|
|
}
|
|
}
|