Add PamhagenSysCtrl
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user