diff --git a/Disp/DemoStl.cs b/Disp/DemoStl.cs
index 25dc1b3..14de6c0 100644
--- a/Disp/DemoStl.cs
+++ b/Disp/DemoStl.cs
@@ -1,6 +1,7 @@
-using Hi.Geom;
+using Hi.Disp;
+using Hi.Geom;
+using Hi.WpfPlus.Disp;
using System;
-using Hi.Disp;
namespace Sample.Disp
{
@@ -41,7 +42,7 @@ namespace Sample.Disp
Console.WriteLine("bouindingbox.Min: " + bouindingbox.Min);
Console.WriteLine("bouindingbox.Max: " + bouindingbox.Max);
Console.WriteLine("bouindingbox.Center: " + bouindingbox.Center);
- DispUtil.CallRenderingFrame("DemoForm", stl.ToFaceDrawing());
+ DispFrameUtil.Call("DemoForm", stl.ToFaceDrawing());
#endregion
}
diff --git a/Disp/DemoUtil.cs b/Disp/DemoUtil.cs
index 9a90e75..4ec0391 100644
--- a/Disp/DemoUtil.cs
+++ b/Disp/DemoUtil.cs
@@ -4,39 +4,38 @@ using Hi.Licenses;
using Hi.WpfPlus.Disp;
using System.Windows;
-namespace Sample.Disp
+namespace Sample.Disp;
+
+///
+/// Provides utility functions for running HiAPI display examples in a WPF environment.
+/// Contains helper methods that simplify the setup and execution of WPF applications with HiAPI rendering.
+/// Handles common initialization and cleanup tasks for visualization examples.
+///
+///
+/// ### Source Code
+/// [!code-csharp[SampleCode](~/../Hi.Sample.Wpf/Disp/DemoUtil.cs)]
+///
+public static class DemoUtil
{
- ///
- /// Provides utility functions for running HiAPI display examples in a WPF environment.
- /// Contains helper methods that simplify the setup and execution of WPF applications with HiAPI rendering.
- /// Handles common initialization and cleanup tasks for visualization examples.
- ///
- ///
- /// ### Source Code
- /// [!code-csharp[SampleCode](~/../Hi.Sample.Wpf/Disp/DemoUtil.cs)]
- ///
- public static class DemoUtil
- {
- ///
- /// Creates and runs a WPF application with a RenderingWindow to display 3D content.
- /// Handles proper initialization and cleanup of HiAPI resources including MongoDB server,
- /// display engine, and licensing.
- ///
- /// The title for the application window
- /// The object that implements IDisplayee to be rendered
- public static void RunApplication(string title, IDisplayee displayee)
- {
- LocalApp.AppBegin();
- Application app = new Application();
- app.Exit += (o, e) =>
- {
- LocalApp.AppEnd();
- };
- app.Run(new RenderingWindow()
- {
- Title = title,
- Displayee = displayee
- });
- }
- }
+ ///
+ /// Creates and runs a WPF application with a RenderingWindow to display 3D content.
+ /// Handles proper initialization and cleanup of HiAPI resources including MongoDB server,
+ /// display engine, and licensing.
+ ///
+ /// The title for the application window
+ /// The object that implements IDisplayee to be rendered
+ public static void RunApplication(string title, IDisplayee displayee)
+ {
+ LocalApp.AppBegin();
+ Application app = new Application();
+ app.Exit += (o, e) =>
+ {
+ LocalApp.AppEnd();
+ };
+ app.Run(new RenderingWindow()
+ {
+ Title = title,
+ Displayee = displayee
+ });
+ }
}