using Artemis.UI.Shared.Services; using Ninject; namespace Artemis.UI.Shared { /// /// Represents the main entry point for the shared UI library /// The Artemis UI calls this so there's no need to deal with this in a plugin /// public static class Bootstrapper { /// /// Gets a boolean indicating whether or not the shared UI library has been initialized /// public static bool Initialized { get; private set; } /// /// Initializes the shared UI library /// /// public static void Initialize(IKernel kernel) { if (Initialized) return; IColorPickerService colorPickerService = kernel.Get(); GradientPicker.ColorPickerService = colorPickerService; ColorPicker.ColorPickerService = colorPickerService; Initialized = true; } } }