Files
Wino-Mail/Wino.Server/App.xaml.cs
2024-07-17 00:20:40 +02:00

25 lines
554 B
C#

using System.Windows;
using H.NotifyIcon;
namespace Wino.Server
{
public partial class App : Application
{
private TaskbarIcon? notifyIcon;
protected override void OnStartup(StartupEventArgs e)
{
base.OnStartup(e);
notifyIcon = (TaskbarIcon)FindResource("NotifyIcon");
notifyIcon.ForceCreate(enablesEfficiencyMode: true);
}
protected override void OnExit(ExitEventArgs e)
{
notifyIcon?.Dispose();
base.OnExit(e);
}
}
}