25 lines
599 B
C#
25 lines
599 B
C#
using PamhagenSysCtrl.Helpers;
|
|
using System.Windows;
|
|
using System.Windows.Threading;
|
|
|
|
namespace PamhagenSysCtrl {
|
|
public partial class App : Application {
|
|
|
|
public static PamhagenPlant? Plant;
|
|
public static Dispatcher MainDispatcher;
|
|
|
|
public App() :
|
|
base() {
|
|
MainDispatcher = Dispatcher;
|
|
}
|
|
|
|
protected override async void OnStartup(StartupEventArgs evt) {
|
|
base.OnStartup(evt);
|
|
}
|
|
|
|
protected async void Application_Exit(object sender, ExitEventArgs evt) {
|
|
Plant?.Dispose();
|
|
}
|
|
}
|
|
}
|