forked from rubberduck-vba/SlimDucky
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.cs
35 lines (28 loc) · 882 Bytes
/
App.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using Microsoft.Vbe.Interop;
namespace SlimDucky
{
public class App
{
private readonly VBE _vbe;
private readonly AddIn _adddIn;
public App(VBE vbe, AddIn addIn)
{
_vbe = vbe;
_adddIn = addIn;
_winFormsUserControl = new WinFormsControl();
_wpfUserControl = new WpfHostControl();
}
private IDockableUserControl _wpfUserControl;
private IDockableUserControl _winFormsUserControl;
public void Startup()
{
var winFormsPresenter = new DockableToolwindowPresenter(_vbe, _adddIn, _winFormsUserControl);
var wpfPresenter = new DockableToolwindowPresenter(_vbe, _adddIn, _wpfUserControl);
winFormsPresenter.Show();
wpfPresenter.Show();
}
public void Shutdown()
{
}
}
}