mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-06 17:50:48 +08:00
1. 重新设计了Generate项目及相关特性的命名,避免与其他类型混淆。
2. 补充了部分注释。 3. 修改了删除容器节点时,容器内子节点未正确删除的问题。
This commit is contained in:
@@ -13,7 +13,7 @@ namespace Serein.Workbench.Node.View
|
||||
/// <summary>
|
||||
/// 节点控件基类(控件)
|
||||
/// </summary>
|
||||
public abstract class NodeControlBase : UserControl //, IDynamicFlowNode
|
||||
public abstract class NodeControlBase : UserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// 节点所在的画布(以后需要将画布封装出来,实现多画布的功能)
|
||||
@@ -34,12 +34,18 @@ namespace Serein.Workbench.Node.View
|
||||
|
||||
public NodeControlViewModelBase ViewModel { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 节点控件基类,所有节点控件都需要继承这个类
|
||||
/// </summary>
|
||||
protected NodeControlBase()
|
||||
{
|
||||
this.Background = Brushes.Transparent;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 节点控件基类,所有节点控件都需要继承这个类
|
||||
/// </summary>
|
||||
/// <param name="viewModelBase"></param>
|
||||
protected NodeControlBase(NodeControlViewModelBase viewModelBase)
|
||||
{
|
||||
ViewModel = viewModelBase;
|
||||
@@ -85,7 +91,7 @@ namespace Serein.Workbench.Node.View
|
||||
/// 添加与该节点有关的连接后,记录下来
|
||||
/// </summary>
|
||||
/// <param name="connection"></param>
|
||||
public void AddCnnection(ConnectionControl connection)
|
||||
internal void AddCnnection(ConnectionControl connection)
|
||||
{
|
||||
connectionControls.Add(connection);
|
||||
}
|
||||
@@ -94,7 +100,7 @@ namespace Serein.Workbench.Node.View
|
||||
/// 删除了连接之后,还需要从节点中的记录移除
|
||||
/// </summary>
|
||||
/// <param name="connection"></param>
|
||||
public void RemoveConnection(ConnectionControl connection)
|
||||
internal void RemoveConnection(ConnectionControl connection)
|
||||
{
|
||||
connectionControls.Remove(connection);
|
||||
connection.Remove(); // 主动删除连接
|
||||
@@ -163,7 +169,7 @@ namespace Serein.Workbench.Node.View
|
||||
return null;
|
||||
}
|
||||
|
||||
protected static JunctionControlBase[] GetArgJunction(NodeControlBase nodeControl, MethodDetailsControl methodDetailsControl)
|
||||
internal static JunctionControlBase[] GetArgJunction(NodeControlBase nodeControl, MethodDetailsControl methodDetailsControl)
|
||||
{
|
||||
// 获取 MethodDetailsControl 实例
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user