diff --git a/Disp/DemoUtil.cs b/Disp/DemoUtil.cs index 9d0bb39..4852061 100644 --- a/Disp/DemoUtil.cs +++ b/Disp/DemoUtil.cs @@ -1,4 +1,5 @@ using Hi.Disp; +using Hi.HiNcKits; using Hi.Licenses; using Hi.MongoUtils; using Hi.Wpf.Disp; @@ -26,13 +27,11 @@ namespace Sample.Disp /// The object that implements IDisplayee to be rendered public static void RunApplication(string title, IDisplayee displayee) { + SingleUserApp.AppBegin(); Application app = new Application(); app.Exit += (o, e) => { - if(MongoServer.IsDefaultInit) - MongoServer.Default.Dispose(); - DispEngine.FinishDisp(); - License.LogOutAll(); + SingleUserApp.AppEnd(); }; app.Run(new RenderingWindow() {