This commit is contained in:
iambossTC 2025-07-23 15:21:06 +08:00
parent 722723565c
commit c7dc8f27e5
4 changed files with 8 additions and 8 deletions

View File

@ -21,11 +21,11 @@ namespace Sample
static int Main(string[] args)
{
Console.WriteLine("HiAPI starting.");
SingleUserApp.AppBegin();
LocalApp.AppBegin();
Console.WriteLine("Hello World! HiAPI.");
SingleUserApp.AppEnd();
LocalApp.AppEnd();
Console.WriteLine("HiAPI exited.");
return 0;

View File

@ -42,7 +42,7 @@ namespace Sample.Machining
static void Main()
{
SingleUserApp.AppBegin();
LocalApp.AppBegin();
var projectPath = "C:/HiNC-Projects/NewProject/Main.hincproj";
var projectDirectory = Path.GetDirectoryName(projectPath);
@ -88,7 +88,7 @@ namespace Sample.Machining
machiningProject.MakeXmlSourceFile(projectPath);
machiningProject.Dispose();
SingleUserApp.AppEnd();
LocalApp.AppEnd();
}
}

View File

@ -142,7 +142,7 @@ namespace Sample.Machining
[STAThread]
static void Main()
{
SingleUserApp.AppBegin();
LocalApp.AppBegin();
var projectPath = "C:/HiNC-Projects/NewProject/Main.hincproj";
var projectDirectory = Path.GetDirectoryName(projectPath);
@ -207,7 +207,7 @@ namespace Sample.Machining
machiningProject.MakeXmlSourceFile(projectPath);
machiningProject.Dispose();
SingleUserApp.AppEnd();
LocalApp.AppEnd();
}
#endregion
}

View File

@ -20,7 +20,7 @@ namespace Sample.Machining
{
static void Main()
{
SingleUserApp.AppBegin();
LocalApp.AppBegin();
#region ProjectLoading
var projectPath = "C:/HiNC-Projects/DemoStandardPath/Main.hincproj";
@ -72,7 +72,7 @@ namespace Sample.Machining
Console.WriteLine($"Close Project: {projectPath}");
machiningProject.Dispose();
SingleUserApp.AppEnd();
LocalApp.AppEnd();
Console.WriteLine($"Program end.");
#endregion