File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,7 @@ public override void Load()
133
133
. WhenInjectedInto < ToDoExplorerCommand > ( )
134
134
. InSingletonScope ( ) ;
135
135
136
+ BindDockableToolwindows ( assemblies ) ;
136
137
BindCommandsToCodeExplorer ( ) ;
137
138
ConfigureRubberduckMenu ( ) ;
138
139
ConfigureCodePaneContextMenu ( ) ;
@@ -143,6 +144,15 @@ public override void Load()
143
144
BindWindowsHooks ( ) ;
144
145
}
145
146
147
+ private void BindDockableToolwindows ( IEnumerable < Assembly > assemblies )
148
+ {
149
+ Kernel . Bind ( t => t . From ( assemblies )
150
+ . SelectAllClasses ( )
151
+ . InheritedFrom < IDockableUserControl > ( )
152
+ . BindToSelf ( )
153
+ . Configure ( binding => binding . InSingletonScope ( ) ) ) ;
154
+ }
155
+
146
156
private void BindWindowsHooks ( )
147
157
{
148
158
Rebind < IAttachable > ( ) . To < TimerHook > ( )
You can’t perform that action at this time.
0 commit comments