24 lines
517 B
C#
24 lines
517 B
C#
using TaskbarLauncher.Services;
|
|
|
|
namespace TaskbarLauncher;
|
|
|
|
public partial class App : System.Windows.Application
|
|
{
|
|
private LauncherController? controller;
|
|
|
|
protected override void OnStartup(System.Windows.StartupEventArgs e)
|
|
{
|
|
base.OnStartup(e);
|
|
|
|
ThemeService.Apply();
|
|
controller = new LauncherController();
|
|
controller.Start();
|
|
}
|
|
|
|
protected override void OnExit(System.Windows.ExitEventArgs e)
|
|
{
|
|
controller?.Dispose();
|
|
base.OnExit(e);
|
|
}
|
|
}
|