准备做控件序列化工作

This commit is contained in:
2025-09-03 16:16:00 +08:00
parent 31d3517ecb
commit e773052a85
365 changed files with 3078 additions and 374 deletions

View File

@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
@@ -81,6 +82,21 @@ namespace Ramitta.lib
}
#endregion
public static void FileWrite(string outputPath, string outputText)
{
using (StreamWriter writer = new StreamWriter(outputPath, false))
{
Debug.WriteLine(outputText);
writer.WriteLine(outputText);
}
}
public static string FileRead(string outputPath)
{
return File.ReadAllText(outputPath);
}
public static async Task<int> RunExternalCommand(string? applicationPath = "explorer.exe", string arguments="", bool UseShellExecute = false, bool CreateNoWindow = false)
{
ProcessStartInfo startInfo = new ProcessStartInfo