|
|
|
|
@ -0,0 +1,21 @@ |
|
|
|
|
// Author: Gockner, Simon |
|
|
|
|
// Created: 2021-04-06 |
|
|
|
|
// Copyright(c) 2021 SimonG. All Rights Reserved. |
|
|
|
|
|
|
|
|
|
using System.Runtime.InteropServices; |
|
|
|
|
using Lib.NotifyIcon; |
|
|
|
|
using Lib.NotifyIcon.Windows; |
|
|
|
|
using LightweightIocContainer.Interfaces; |
|
|
|
|
using LightweightIocContainer.Interfaces.Installers; |
|
|
|
|
|
|
|
|
|
namespace Mystify.Installers |
|
|
|
|
{ |
|
|
|
|
public class NotifyIconInstaller : IIocInstaller |
|
|
|
|
{ |
|
|
|
|
public void Install(IIocContainer container) |
|
|
|
|
{ |
|
|
|
|
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) |
|
|
|
|
container.Register<INotifyIcon, NotifyIcon>(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |