重新设计了FlowLIbrary相关类;为工作台默认添加了基础依赖、默认画布。

This commit is contained in:
fengjiayi
2025-07-28 12:16:29 +08:00
parent 6354c4c7fd
commit ccb8e49abc
39 changed files with 497 additions and 453 deletions

View File

@@ -1,5 +1,5 @@
using Microsoft.Win32;
using Serein.NodeFlow;
using Serein.NodeFlow.Model.Library;
using Serein.NodeFlow.Tool;
using System;
using System.Collections.Generic;
@@ -34,7 +34,7 @@ namespace Serein.Workbench.Themes
/// <summary>
/// 编译成功回调
/// </summary>
public Action<FlowLibrary> OnCompileComplete { get; set; }
public Action<FlowLibraryCache> OnCompileComplete { get; set; }
public DynamicCompilerView()
{
InitializeComponent();
@@ -132,7 +132,7 @@ namespace Serein.Workbench.Themes
var path = textboxAssemblyName.Text;
Assembly assembly = _compiler.Compile(code, path);
FlowLibrary flowLibrary = new FlowLibrary(assembly, path);
FlowLibraryCache flowLibrary = new FlowLibraryCache(assembly, path);
if (assembly != null)
{