1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-13 05:48:35 +00:00
Artemis/src/Artemis.UI.Shared/Bootstrapper.cs
2020-10-05 22:50:29 +02:00

22 lines
577 B
C#

using Artemis.UI.Shared.Services;
using Ninject;
namespace Artemis.UI.Shared
{
public static class Bootstrapper
{
public static bool Initialized { get; private set; }
public static void Initialize(IKernel kernel)
{
if (Initialized)
return;
IColorPickerService colorPickerService = kernel.Get<IColorPickerService>();
GradientPicker.ColorPickerService = colorPickerService;
ColorPicker.ColorPickerService = colorPickerService;
Initialized = true;
}
}
}