Wino.Server and Wino.Packaging projects. Enabling full trust for UWP and app service connection manager basics.

This commit is contained in:
Burak Kaan Köse
2024-07-16 23:28:57 +02:00
parent 3b8454269e
commit ec4162e71f
141 changed files with 799 additions and 116 deletions

25
Wino.Server/App.xaml.cs Normal file
View File

@@ -0,0 +1,25 @@
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);
//create the notifyicon (it's a resource declared in NotifyIconResources.xaml
notifyIcon = (TaskbarIcon)FindResource("NotifyIcon");
notifyIcon.ForceCreate(enablesEfficiencyMode: true);
}
protected override void OnExit(ExitEventArgs e)
{
notifyIcon?.Dispose();
base.OnExit(e);
}
}
}