12345678910111213141516171819202122232425262728293031 |
- using System.Windows;
- using MECF.Framework.UI.Core.Applications;
- using EfemDualSimulator.Instances;
- namespace EfemDualSimulator
- {
- /// <summary>
- /// App.xaml 的交互逻辑
- /// </summary>
- public partial class App : Application
- {
- protected override void OnStartup(StartupEventArgs e)
- {
- base.OnStartup(e);
- UiApplication.Instance.Initialize(new UiInstance());
- SimulatorSystem.Instance.Initialize();
- }
- protected override void OnExit(ExitEventArgs e)
- {
- UiApplication.Instance.Terminate();
- SimulatorSystem.Instance.Terminate();
- base.OnExit(e);
- }
- }
- }
|