mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-03 00:00:49 +08:00
完善节点图的代码生成
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user