using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Linq; using System.Threading.Tasks; using System.Windows; namespace PdmAlert { /// /// App.xaml 的交互逻辑 /// public partial class App : Application { DockApp dockApp; protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); this.ShutdownMode = ShutdownMode.OnExplicitShutdown; dockApp.Run(); } private void Application_Startup(object sender, StartupEventArgs e) { dockApp = new DockApp(); } } }