2024-08-06 16:09:46 +08:00
|
|
|
|
using Serein.NodeFlow.Model;
|
2024-08-05 10:11:58 +08:00
|
|
|
|
using Serein.WorkBench.Node.ViewModel;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Serein.WorkBench.Node.View
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// ExprOpNodeControl.xaml 的交互逻辑
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public partial class ExpOpNodeControl : NodeControlBase
|
|
|
|
|
|
{
|
2024-08-05 20:32:16 +08:00
|
|
|
|
public ExpOpNodeViewModel ViewModel { get; }
|
2024-08-05 10:11:58 +08:00
|
|
|
|
|
|
|
|
|
|
public ExpOpNodeControl()
|
|
|
|
|
|
{
|
2024-08-05 20:32:16 +08:00
|
|
|
|
ViewModel = new (new());
|
|
|
|
|
|
DataContext = ViewModel;
|
2024-08-05 10:11:58 +08:00
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
}
|
|
|
|
|
|
public ExpOpNodeControl(SingleExpOpNode node):base(node)
|
|
|
|
|
|
{
|
|
|
|
|
|
Node = node;
|
2024-08-05 20:32:16 +08:00
|
|
|
|
ViewModel = new(node);
|
|
|
|
|
|
DataContext = ViewModel;
|
2024-08-05 10:11:58 +08:00
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|