chore(demos): update WPF demo machining and disp util
Made-with: Cursor
This commit is contained in:
parent
bb10b6e34d
commit
b21da87ded
@ -26,7 +26,8 @@ public static class DemoUtil
|
|||||||
/// <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)
|
||||||
{
|
{
|
||||||
LocalApp.AppBegin();
|
using var loggerFactory = Microsoft.Extensions.Logging.LoggerFactory.Create(b => b.AddConsole());
|
||||||
|
LocalApp.AppBegin(loggerFactory.CreateLogger("Hi.Sample.Wpf"));
|
||||||
Application app = new Application();
|
Application app = new Application();
|
||||||
app.Exit += (o, e) =>
|
app.Exit += (o, e) =>
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
using Hi.Common;
|
using Hi.Common.Messages;
|
||||||
using Hi.Disp;
|
using Hi.Disp;
|
||||||
using Hi.Geom;
|
using Hi.Geom;
|
||||||
using Hi.Geom.Resolution;
|
using Hi.Geom.Resolution;
|
||||||
@ -34,7 +34,8 @@ 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);
|
||||||
|
|
||||||
LocalApp.AppBegin();
|
using var loggerFactory = Microsoft.Extensions.Logging.LoggerFactory.Create(b => b.AddConsole());
|
||||||
|
LocalApp.AppBegin(loggerFactory.CreateLogger("Hi.Sample.Wpf"));
|
||||||
|
|
||||||
LocalProjectService localProjectService = new LocalProjectService();
|
LocalProjectService localProjectService = new LocalProjectService();
|
||||||
|
|
||||||
|
|||||||
@ -22,7 +22,8 @@ namespace Sample.Machining
|
|||||||
[STAThread]
|
[STAThread]
|
||||||
static void Main(string[] args)
|
static void Main(string[] args)
|
||||||
{
|
{
|
||||||
LocalApp.AppBegin();
|
using var loggerFactory = Microsoft.Extensions.Logging.LoggerFactory.Create(b => b.AddConsole());
|
||||||
|
LocalApp.AppBegin(loggerFactory.CreateLogger("Hi.Sample.Wpf"));
|
||||||
LocalProjectService localProjectService = new LocalProjectService();
|
LocalProjectService localProjectService = new LocalProjectService();
|
||||||
|
|
||||||
#region Load Machining Project
|
#region Load Machining Project
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user