publish aicam server.
This commit is contained in:
parent
5c6f6c4a35
commit
3dc024d94f
@ -1,4 +1,5 @@
|
|||||||
using Hi.Disp;
|
using Hi.Disp;
|
||||||
|
using Hi.HiNcKits;
|
||||||
using Hi.Licenses;
|
using Hi.Licenses;
|
||||||
using Hi.MongoUtils;
|
using Hi.MongoUtils;
|
||||||
using Hi.Wpf.Disp;
|
using Hi.Wpf.Disp;
|
||||||
@ -26,13 +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();
|
||||||
Application app = new Application();
|
Application app = new Application();
|
||||||
app.Exit += (o, e) =>
|
app.Exit += (o, e) =>
|
||||||
{
|
{
|
||||||
if(MongoServer.IsDefaultInit)
|
SingleUserApp.AppEnd();
|
||||||
MongoServer.Default.Dispose();
|
|
||||||
DispEngine.FinishDisp();
|
|
||||||
License.LogOutAll();
|
|
||||||
};
|
};
|
||||||
app.Run(new RenderingWindow()
|
app.Run(new RenderingWindow()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user