This commit is contained in:
iambossTC 2025-07-23 15:21:13 +08:00
parent 3dc024d94f
commit 5ab94042d9
3 changed files with 7 additions and 7 deletions

View File

@ -27,11 +27,11 @@ namespace Sample.Disp
/// <param name="displayee">The object that implements IDisplayee to be rendered</param>
public static void RunApplication(string title, IDisplayee displayee)
{
SingleUserApp.AppBegin();
LocalApp.AppBegin();
Application app = new Application();
app.Exit += (o, e) =>
{
SingleUserApp.AppEnd();
LocalApp.AppEnd();
};
app.Run(new RenderingWindow()
{

View File

@ -34,7 +34,7 @@ namespace Sample.Machining
new Cylindroid(new PairZr(-h, 18), new PairZr(0, 18))
.GenStl(new PolarResolution2d(1, MathUtil.ToRad(15))).WriteBin(stlFile_CylinderR18);
SingleUserApp.AppBegin();
LocalApp.AppBegin();
#region ProjectLoading
//var projectPath = "C:/HiNC-Projects/DemoStandardPath/Main.hincproj";
@ -72,7 +72,7 @@ namespace Sample.Machining
dispEngine.Snapshot($"Cache/result.bmp", 1000, 1000);
project.Dispose();
SingleUserApp.AppEnd();
LocalApp.AppEnd();
Console.WriteLine($"App exit.");
}
static void RunWindow(MachiningProject project,
@ -92,7 +92,7 @@ namespace Sample.Machining
app.Exit += (o, e) =>
{
project.Dispose();
SingleUserApp.AppEnd();
LocalApp.AppEnd();
Console.WriteLine($"App exit.");
};
app.Run(new RenderingWindow()

View File

@ -26,7 +26,7 @@ namespace Sample.Machining
[STAThread]
static void Main(string[] args)
{
SingleUserApp.AppBegin();
LocalApp.AppBegin();
#region Load Machining Project
var projectPath = "C:/HiNC-Projects/DemoStandardPath/Main.hincproj";
@ -58,7 +58,7 @@ namespace Sample.Machining
app.Exit += (o, e) =>
{
machiningProject.Dispose();
SingleUserApp.AppEnd();
LocalApp.AppEnd();
Console.WriteLine($"App exit.");
};
app.Run(new RenderingWindow()