36 lines
873 B
C#
36 lines
873 B
C#
using Hi.Disp;
|
|
using Hi.Disp.Flag;
|
|
using Hi.Geom;
|
|
using Hi.Licenses;
|
|
using Hi.WinForm.Disp;
|
|
using System;
|
|
using System.Windows.Forms;
|
|
|
|
namespace Hi.WinForm
|
|
{
|
|
static class Program
|
|
{
|
|
/// <summary>
|
|
/// The main entry point for the application.
|
|
/// </summary>
|
|
[STAThread]
|
|
static void Main()
|
|
{
|
|
License.LogInAll();
|
|
DispEngine.Init();
|
|
Application.ApplicationExit += (object sender, EventArgs e) =>
|
|
{
|
|
DispEngine.FinishDisp();
|
|
License.LogOutAll();
|
|
};
|
|
|
|
RenderingCanvas displayer = new RenderingCanvas(
|
|
new CoordinateDrawing(), new Stl(Box3d.CenterUnitBox).ToFaceDrawing());
|
|
Form form = new Form();
|
|
form.Controls.Add(displayer);
|
|
Application.Run(form);
|
|
}
|
|
|
|
}
|
|
}
|