修改了保存方法,可以正常使用

This commit is contained in:
fengjiayi
2024-08-05 20:32:16 +08:00
parent 5b15871f65
commit e6848e6417
6 changed files with 100 additions and 60 deletions

View File

@@ -157,15 +157,13 @@ namespace Serein.WorkBench
Shutdown(); // 关闭应用程序
}
}
else if(1 == 11)
{
string filePath =
@"D:\Project\C#\DynamicControl\DynamicControl\DynamicDemo\bin\Debug\net8.0-windows7.0\project 233.dnf";
//@"D:\Project\C#\DynamicControl\DynamicControl\DynamicDemo\bin\Debug\net8.0-windows7.0\demo project\node project.dnf";
string content = System.IO.File.ReadAllText(filePath); // 读取整个文件内容
FData = JsonConvert.DeserializeObject<SereinOutputFileData>(content);
App.FileDataPath = System.IO.Path.GetDirectoryName(filePath);
}
//else if(1 == 1)
//{
// string filePath =@"F:\临时\project\project.dnf";
// string content = System.IO.File.ReadAllText(filePath); // 读取整个文件内容
// FData = JsonConvert.DeserializeObject<SereinOutputFileData>(content);
// App.FileDataPath = System.IO.Path.GetDirectoryName(filePath);
//}
}
}