mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
22 lines
577 B
C#
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;
|
|
}
|
|
}
|
|
} |