tune
This commit is contained in:
@@ -152,6 +152,7 @@ Handles common initialization and cleanup tasks for visualization examples.</p>
|
||||
<h2 id="Sample_Disp_DemoUtil_remarks">Remarks</h2>
|
||||
<div class="markdown level0 remarks"><h3 id="source-code">Source Code</h3>
|
||||
<pre><code class="lang-csharp" name="SampleCode">using Hi.Disp;
|
||||
using Hi.HiNcKits;
|
||||
using Hi.Licenses;
|
||||
using Hi.MongoUtils;
|
||||
using Hi.Wpf.Disp;
|
||||
@@ -179,13 +180,11 @@ namespace Sample.Disp
|
||||
/// <param name="displayee">The object that implements IDisplayee to be rendered</param>
|
||||
public static void RunApplication(string title, IDisplayee displayee)
|
||||
{
|
||||
LocalApp.AppBegin();
|
||||
Application app = new Application();
|
||||
app.Exit += (o, e) =>
|
||||
{
|
||||
if(MongoServer.IsDefaultInit)
|
||||
MongoServer.Default.Dispose();
|
||||
DispEngine.FinishDisp();
|
||||
License.LogOutAll();
|
||||
LocalApp.AppEnd();
|
||||
};
|
||||
app.Run(new RenderingWindow()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user