io commander
This commit is contained in:
21
VisionBuilder.UI.IOCommander.Windows/ModuleExtensions.cs
Normal file
21
VisionBuilder.UI.IOCommander.Windows/ModuleExtensions.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Ninject.Extensions.ChildKernel;
|
||||
using System.ComponentModel;
|
||||
using Ninject;
|
||||
using VisionBuilder.UI.Common;
|
||||
using VisionBuilder.UI.IOCommander.Interfaces;
|
||||
using VisionBuilder.UI.IOCommander.Settings;
|
||||
using VisionBuilder.UI.IOCommander.Windows;
|
||||
|
||||
namespace VisionBuilder.UI.IOCommander;
|
||||
|
||||
public static class ModuleExtensions
|
||||
{
|
||||
public static IKernel UseIOCommanderWindowsDebug(this IKernel self)
|
||||
{
|
||||
TypeDescriptor.AddAttributes(typeof(List<PinLabel>), new TypeConverterAttribute(typeof(PinLabelListConverter)));
|
||||
|
||||
self.Rebind<IIOCommanderDebugViewService>().To<WindowsIOCommanderDebugViewService>().InSingletonScope();
|
||||
self.Bind<WindowsIOCommanderDebugViewSettings,ISettings>().ToConstant(new WindowsIOCommanderDebugViewSettings());
|
||||
return self;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user