完善节点图的代码生成

This commit is contained in:
fengjiayi
2025-07-07 20:40:24 +08:00
parent b25fd9c83c
commit 678b01f2fe
33 changed files with 1219 additions and 214 deletions

View File

@@ -1,7 +1,9 @@
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using Serein.Library.Api;
using Serein.NodeFlow.Services;
using Serein.Workbench.Services;
using System.Diagnostics;
using System.Windows.Input;
namespace Serein.Workbench.ViewModels
@@ -130,6 +132,20 @@ namespace Serein.Workbench.ViewModels
private void OpenRemoteServer()
{
try
{
var env = App.GetService<IFlowEnvironment>();
var flowModelService = env.IOC.Get<FlowModelService>();
var text = flowModelService.ToCsharpCoreFile(); ;
Debug.WriteLine(text);
}
catch (Exception ex)
{
}
flowEnvironment.StartRemoteServerAsync();
}