-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
26 lines (21 loc) · 743 Bytes
/
Copy pathProgram.cs
File metadata and controls
26 lines (21 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using DesktopIndicator.src;
namespace DesktopIndicator;
internal static class Program
{
[STAThread]
private static void Main()
{
ApplicationConfiguration.Initialize();
using var singleInstance = new SingleInstanceGuard("DesktopIndicator.SingleInstance");
if (!singleInstance.IsPrimaryInstance)
{
return;
}
using var desktopProvider = new InternalComDesktopProvider();
using var startupManager = new StartupManager();
using var desktopManager = new DesktopManager(desktopProvider);
using var trayContext = new TaskbarCornerIconHost(desktopManager, startupManager);
desktopManager.Start();
Application.Run(trayContext);
}
}