mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-11 12:10:47 +08:00
GIT练习
This commit is contained in:
41
WorkBench/Node/View/FlipflopNodeControl.xaml.cs
Normal file
41
WorkBench/Node/View/FlipflopNodeControl.xaml.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
using Serein.DynamicFlow;
|
||||
using Serein.DynamicFlow.NodeModel;
|
||||
using Serein.WorkBench.Node.ViewModel;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace Serein.WorkBench.Node.View
|
||||
{
|
||||
/// <summary>
|
||||
/// StateNode.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class FlipflopNodeControl : NodeControlBase
|
||||
{
|
||||
private readonly FlipflopNodeControlViewModel viewModel;
|
||||
|
||||
public FlipflopNodeControl(SingleFlipflopNode node) : base(node)
|
||||
{
|
||||
Node = node;
|
||||
viewModel = new FlipflopNodeControlViewModel(node);
|
||||
DataContext = viewModel;
|
||||
InitializeComponent();
|
||||
|
||||
}
|
||||
|
||||
//private void ComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
|
||||
//{
|
||||
// var comboBox = sender as ComboBox;
|
||||
// if (comboBox == null)
|
||||
// {
|
||||
// return;
|
||||
// }
|
||||
// var selectedExplicitData = comboBox.DataContext as ExplicitData;
|
||||
// if (selectedExplicitData == null)
|
||||
// {
|
||||
// return;
|
||||
// }
|
||||
|
||||
// Console.WriteLine (selectedExplicitData.DataValue, "Selected Value");
|
||||
//}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user