更改初版
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using Example;
|
||||
using FreeSql;
|
||||
using OrpaonEMS.App.Services;
|
||||
using OrpaonEMS.App.CANDrive;
|
||||
using OrpaonEMS.App.ViewModels;
|
||||
using OrpaonEMS.App.Views;
|
||||
using OrpaonEMS.Core;
|
||||
@@ -115,7 +116,8 @@ namespace OrpaonEMS.App
|
||||
services.RegisterForNavigation<ACView, ACViewModel>();
|
||||
services.RegisterForNavigation<FFView, FFViewModel>();
|
||||
services.RegisterForNavigation<SysConfigView, SysConfigViewModel>();
|
||||
|
||||
services.RegisterForNavigation<ControlConfigView, ControlConfigViewModel>();
|
||||
|
||||
services.RegisterForNavigation<YuPuHandView, YuPuHandViewModel>();
|
||||
services.RegisterForNavigation<AutoHandView, AutoHandViewModel>();
|
||||
services.RegisterForNavigation<YuPuDashBoardView, YuPuDashBoardViewModel>();
|
||||
@@ -193,6 +195,9 @@ namespace OrpaonEMS.App
|
||||
ContainerLocator.Container.Resolve<EnergyStorageService>().WebSocketThreadEnable = false;
|
||||
ContainerLocator.Container.Resolve<EMSService>().ThreadEnable = false;
|
||||
|
||||
// 确保停止 CAN 接收线程,避免前台线程阻塞进程退出
|
||||
CAN.Stop();
|
||||
|
||||
energyStorageService.EnergyStorageStateMachine.Fire(Core.Enums.EnergyStorageStateTrig.HandTrig);
|
||||
base.OnExit(e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user