add geom GUI to HiNC-2025-win-desktop.

This commit is contained in:
2025-05-09 09:25:14 +08:00
parent 784184d6ce
commit 953711bf01
8 changed files with 352 additions and 66 deletions
+4 -18
View File
@@ -1,9 +1,8 @@
using System;
using Hi.Licenses;
using Hi.Common.Messages;
using Hi.MachiningProcs;
using Hi.Common.FileLines;
using Hi.MongoUtils;
using Hi.HiNcKits;
namespace Sample.Machining
{
@@ -21,16 +20,7 @@ namespace Sample.Machining
{
static void Main()
{
#region LicenseAndDatabaseSetup
Console.WriteLine($"License Login.");
License.LogInAll();
Console.WriteLine($"Start Database.");
MongoServer.Default = MongoServer.Run(new MongoRunnerOptions()
{
MongoPort = 28100
});
#endregion
SingleUserApp.AppBegin();
#region ProjectLoading
var projectPath = "C:/HiNC-Projects/DemoStandardPath/Main.hincproj";
@@ -45,7 +35,7 @@ namespace Sample.Machining
{
if (pack.Tags.Contains(MessageFlag.Warning.ToString()) ||
pack.Tags.Contains(MessageFlag.Error.ToString()) ||
pack.Tags.Contains(MessageFlag.SysErr.ToString()))
pack.Tags.Contains(MessageFlag.Exception.ToString()))
{
var sourceCommand = pack.SourceCommand;
Console.WriteLine($"{pack.Message} At \"{sourceCommand?.FilePath}\" (Line {sourceCommand?.GetLineNo()}) \"{sourceCommand?.Line}\"");
@@ -82,11 +72,7 @@ namespace Sample.Machining
Console.WriteLine($"Close Project: {projectPath}");
machiningProject.Dispose();
Console.WriteLine($"Close Database.");
MongoServer.Default.Dispose();
Console.WriteLine($"License Logout.");
License.LogOutAll();
SingleUserApp.AppEnd();
Console.WriteLine($"Program end.");
#endregion