# Conflicts: # .gitignore # App.xaml # App.xaml.cs # AudioWatcher.cs # Delcom/DeviceManagement.cs # Delcom/StoplightIndicator.cs # LICENSE.md # LightController.cs # Properties/AssemblyInfo.cs # Properties/Resources.Designer.cs # Properties/Resources.resx # Properties/Settings.Designer.cs # Properties/Settings.settings # README.md # UpdateCheck.cs # WorkIndicator.csproj # WorkIndicator.sln # WorkIndicator.sln.DotSettings
29 lines
621 B
C#
29 lines
621 B
C#
using ChrisKaczor.Wpf.Application;
|
|
using System.Diagnostics;
|
|
using System.Windows;
|
|
using Settings = WorkIndicator.Properties.Settings;
|
|
|
|
namespace WorkIndicator;
|
|
|
|
public partial class App
|
|
{
|
|
protected override void OnStartup(StartupEventArgs e)
|
|
{
|
|
base.OnStartup(e);
|
|
|
|
Current.SetStartWithWindows(!Debugger.IsAttached && Settings.Default.AutoStart);
|
|
|
|
NotificationIcon.Initialize();
|
|
|
|
LightController.Initialize();
|
|
}
|
|
|
|
protected override void OnExit(ExitEventArgs e)
|
|
{
|
|
LightController.Dispose();
|
|
|
|
NotificationIcon.Dispose();
|
|
|
|
base.OnExit(e);
|
|
}
|
|
} |