App.xaml.cs 697 B

12345678910111213141516171819202122232425262728293031
  1. using System.Windows;
  2. using MECF.Framework.UI.Core.Applications;
  3. using EfemDualSimulator.Instances;
  4. namespace EfemDualSimulator
  5. {
  6. /// <summary>
  7. /// App.xaml 的交互逻辑
  8. /// </summary>
  9. public partial class App : Application
  10. {
  11. protected override void OnStartup(StartupEventArgs e)
  12. {
  13. base.OnStartup(e);
  14. UiApplication.Instance.Initialize(new UiInstance());
  15. SimulatorSystem.Instance.Initialize();
  16. }
  17. protected override void OnExit(ExitEventArgs e)
  18. {
  19. UiApplication.Instance.Terminate();
  20. SimulatorSystem.Instance.Terminate();
  21. base.OnExit(e);
  22. }
  23. }
  24. }