1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
| using System;
| using System.Collections.Generic;
| using System.Configuration;
| using System.Data;
| using System.Linq;
| using System.Threading.Tasks;
| using System.Windows;
|
| namespace PdmAlert
| {
| /// <summary>
| /// App.xaml 的交互逻辑
| /// </summary>
| 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();
| }
| }
| }
|
|