简化WEB库

This commit is contained in:
2025-09-23 10:38:35 +08:00
parent 9a89a138dd
commit c6037c51ed
17 changed files with 165 additions and 780 deletions

View File

@@ -122,7 +122,10 @@ namespace 电子展板.ViewModels
/// </summary>
public void WindowClosing(CancelEventArgs args)
{
WebServer.Stop();
GlobalVariable.WebServer?.Stop();
GlobalVariable.WebServer?.Dispose();
GlobalVariable.WebServer = null;
Screen[] screens = Screen.AllScreens;
if (screens.Length > 1)
{