tune.
This commit is contained in:
parent
3dc024d94f
commit
5ab94042d9
@ -27,11 +27,11 @@ namespace Sample.Disp
|
|||||||
/// <param name="displayee">The object that implements IDisplayee to be rendered</param>
|
/// <param name="displayee">The object that implements IDisplayee to be rendered</param>
|
||||||
public static void RunApplication(string title, IDisplayee displayee)
|
public static void RunApplication(string title, IDisplayee displayee)
|
||||||
{
|
{
|
||||||
SingleUserApp.AppBegin();
|
LocalApp.AppBegin();
|
||||||
Application app = new Application();
|
Application app = new Application();
|
||||||
app.Exit += (o, e) =>
|
app.Exit += (o, e) =>
|
||||||
{
|
{
|
||||||
SingleUserApp.AppEnd();
|
LocalApp.AppEnd();
|
||||||
};
|
};
|
||||||
app.Run(new RenderingWindow()
|
app.Run(new RenderingWindow()
|
||||||
{
|
{
|
||||||
|
@ -34,7 +34,7 @@ namespace Sample.Machining
|
|||||||
new Cylindroid(new PairZr(-h, 18), new PairZr(0, 18))
|
new Cylindroid(new PairZr(-h, 18), new PairZr(0, 18))
|
||||||
.GenStl(new PolarResolution2d(1, MathUtil.ToRad(15))).WriteBin(stlFile_CylinderR18);
|
.GenStl(new PolarResolution2d(1, MathUtil.ToRad(15))).WriteBin(stlFile_CylinderR18);
|
||||||
|
|
||||||
SingleUserApp.AppBegin();
|
LocalApp.AppBegin();
|
||||||
|
|
||||||
#region ProjectLoading
|
#region ProjectLoading
|
||||||
//var projectPath = "C:/HiNC-Projects/DemoStandardPath/Main.hincproj";
|
//var projectPath = "C:/HiNC-Projects/DemoStandardPath/Main.hincproj";
|
||||||
@ -72,7 +72,7 @@ namespace Sample.Machining
|
|||||||
dispEngine.Snapshot($"Cache/result.bmp", 1000, 1000);
|
dispEngine.Snapshot($"Cache/result.bmp", 1000, 1000);
|
||||||
|
|
||||||
project.Dispose();
|
project.Dispose();
|
||||||
SingleUserApp.AppEnd();
|
LocalApp.AppEnd();
|
||||||
Console.WriteLine($"App exit.");
|
Console.WriteLine($"App exit.");
|
||||||
}
|
}
|
||||||
static void RunWindow(MachiningProject project,
|
static void RunWindow(MachiningProject project,
|
||||||
@ -92,7 +92,7 @@ namespace Sample.Machining
|
|||||||
app.Exit += (o, e) =>
|
app.Exit += (o, e) =>
|
||||||
{
|
{
|
||||||
project.Dispose();
|
project.Dispose();
|
||||||
SingleUserApp.AppEnd();
|
LocalApp.AppEnd();
|
||||||
Console.WriteLine($"App exit.");
|
Console.WriteLine($"App exit.");
|
||||||
};
|
};
|
||||||
app.Run(new RenderingWindow()
|
app.Run(new RenderingWindow()
|
||||||
|
@ -26,7 +26,7 @@ namespace Sample.Machining
|
|||||||
[STAThread]
|
[STAThread]
|
||||||
static void Main(string[] args)
|
static void Main(string[] args)
|
||||||
{
|
{
|
||||||
SingleUserApp.AppBegin();
|
LocalApp.AppBegin();
|
||||||
|
|
||||||
#region Load Machining Project
|
#region Load Machining Project
|
||||||
var projectPath = "C:/HiNC-Projects/DemoStandardPath/Main.hincproj";
|
var projectPath = "C:/HiNC-Projects/DemoStandardPath/Main.hincproj";
|
||||||
@ -58,7 +58,7 @@ namespace Sample.Machining
|
|||||||
app.Exit += (o, e) =>
|
app.Exit += (o, e) =>
|
||||||
{
|
{
|
||||||
machiningProject.Dispose();
|
machiningProject.Dispose();
|
||||||
SingleUserApp.AppEnd();
|
LocalApp.AppEnd();
|
||||||
Console.WriteLine($"App exit.");
|
Console.WriteLine($"App exit.");
|
||||||
};
|
};
|
||||||
app.Run(new RenderingWindow()
|
app.Run(new RenderingWindow()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user