mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-03 00:00:49 +08:00
准备区分节点、参数、返回值的连接,做个备份
This commit is contained in:
@@ -10,18 +10,25 @@ namespace Serein.Workbench
|
||||
/// </summary>
|
||||
public partial class App : Application
|
||||
{
|
||||
#if DEBUG
|
||||
|
||||
void LoadLocalProject()
|
||||
{
|
||||
#if DEBUG
|
||||
if (1 == 1)
|
||||
{
|
||||
string filePath;
|
||||
filePath = @"F:\临时\project\linux\project.dnf";
|
||||
string content = System.IO.File.ReadAllText(filePath); // 读取整个文件内容
|
||||
App.FlowProjectData = JsonConvert.DeserializeObject<SereinProjectData>(content);
|
||||
App.FileDataPath = System.IO.Path.GetDirectoryName(filePath)!; // filePath;//
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
public static SereinProjectData? FlowProjectData { get; set; }
|
||||
public static string FileDataPath { get; set; } = "";
|
||||
|
||||
public App()
|
||||
{
|
||||
// TestExp();
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -66,28 +73,11 @@ namespace Serein.Workbench
|
||||
Shutdown(); // 关闭应用程序
|
||||
}
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
else if(1 == 11)
|
||||
{
|
||||
//string filePath = @"F:\临时\project\new project.dnf";
|
||||
|
||||
string filePath;
|
||||
//filePath = @"F:\临时\project\tmp\project.dnf";
|
||||
//filePath = @"D:\Project\C#\TestNetFramework\Net45DllTest\Net45DllTest\bin\Debug\project.dnf";
|
||||
//filePath = @"D:\Project\C#\DynamicControl\SereinFlow\Net462DllTest\bin\Debug\project.dnf";
|
||||
//filePath = @"D:\Project\C#\DynamicControl\SereinFlow\.Output\Debug\net8.0-windows7.0\project.dnf";
|
||||
filePath = @"F:\临时\project\linux\project.dnf";
|
||||
//string filePath = @"D:\Project\C#\DynamicControl\SereinFlow\.Output\Debug\net8.0-windows7.0\U9 project.dnf";
|
||||
string content = System.IO.File.ReadAllText(filePath); // 读取整个文件内容
|
||||
App.FlowProjectData = JsonConvert.DeserializeObject<SereinProjectData>(content);
|
||||
App.FileDataPath =System.IO.Path.GetDirectoryName(filePath)!; // filePath;//
|
||||
}
|
||||
#endif
|
||||
this.LoadLocalProject();
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#if DEBUG && false
|
||||
|
||||
@@ -190,5 +180,3 @@ namespace Serein.Workbench
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user