尝试使用源生成器规范NodeModel代码逻辑

This commit is contained in:
fengjiayi
2024-10-20 12:10:57 +08:00
parent 9931fa7436
commit e38833a58c
127 changed files with 5173 additions and 1839 deletions

View File

@@ -1,9 +1,7 @@
using Newtonsoft.Json;
using Serein.Library.Entity;
using Serein.NodeFlow;
using Serein.NodeFlow.Tool;
using System.Diagnostics;
using Serein.Library;
using System.Windows;
using System.Windows.Threading;
namespace Serein.Workbench
{
@@ -20,6 +18,9 @@ namespace Serein.Workbench
public App()
{
// TestExp();
}
protected override void OnExit(ExitEventArgs e)
@@ -32,9 +33,11 @@ namespace Serein.Workbench
window.Close();
}
}
private void Application_Startup(object sender, StartupEventArgs e)
{
Application.Current.Dispatcher.Invoke(() => { });
// 检查是否传入了参数
if (e.Args.Length == 1)
{
@@ -63,7 +66,7 @@ namespace Serein.Workbench
}
#if DEBUG
else if(1== 1)
else if(1 == 1)
{
//string filePath = @"F:\临时\project\new project.dnf";