using System.Windows; using MECF.Framework.UI.Core.Applications; using EfemDualSimulator.Instances; namespace EfemDualSimulator { /// /// App.xaml 的交互逻辑 /// 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); } } }