コード例 #1
0
ファイル: MainWindowControl.cs プロジェクト: n017/dnSpy
        MainWindowControl(IToolWindowManagerCreator toolWindowManagerCreator, [ImportMany] Lazy<IMainToolWindowContentCreator>[] contentCreators)
        {
            this.horizontalContent = new StackedContent<IStackedContentChild>(true);
            this.verticalContent = new StackedContent<IStackedContentChild>(false);
            this.toolWindowUIs = new Dictionary<AppToolWindowLocation, ToolWindowUI>();
            var toolWindowManager = toolWindowManagerCreator.Create();
            this.contentCreators = contentCreators.ToArray();
            this.savedLocations = new Dictionary<Guid, AppToolWindowLocation>();

            var guid = new Guid(MenuConstants.GUIDOBJ_TOOLWINDOW_TABCONTROL_GUID);
            const double HORIZ_WIDTH = 250, VERT_HEIGHT = 250;
            toolWindowUIs.Add(AppToolWindowLocation.Left, new ToolWindowUI(this, AppToolWindowLocation.Left, HORIZ_WIDTH, horizontalContent, false, toolWindowManager.Create(new ToolWindowGroupManagerOptions(guid))));
            toolWindowUIs.Add(AppToolWindowLocation.Right, new ToolWindowUI(this, AppToolWindowLocation.Right, HORIZ_WIDTH, horizontalContent, true, toolWindowManager.Create(new ToolWindowGroupManagerOptions(guid))));
            toolWindowUIs.Add(AppToolWindowLocation.Top, new ToolWindowUI(this, AppToolWindowLocation.Top, VERT_HEIGHT, verticalContent, false, toolWindowManager.Create(new ToolWindowGroupManagerOptions(guid))));
            toolWindowUIs.Add(AppToolWindowLocation.Bottom, new ToolWindowUI(this, AppToolWindowLocation.Bottom, VERT_HEIGHT, verticalContent, true, toolWindowManager.Create(new ToolWindowGroupManagerOptions(guid))));
        }
コード例 #2
0
ファイル: MainWindowControl.cs プロジェクト: imanadib/dnSpy
        MainWindowControl(IToolWindowManagerCreator toolWindowManagerCreator, [ImportMany] Lazy <IMainToolWindowContentCreator>[] contentCreators)
        {
            this.horizontalContent = new StackedContent <IStackedContentChild>(true);
            this.verticalContent   = new StackedContent <IStackedContentChild>(false);
            this.toolWindowUIs     = new Dictionary <AppToolWindowLocation, ToolWindowUI>();
            var toolWindowManager = toolWindowManagerCreator.Create();

            this.contentCreators = contentCreators.ToArray();
            this.savedLocations  = new Dictionary <Guid, AppToolWindowLocation>();

            var          guid = new Guid(MenuConstants.GUIDOBJ_TOOLWINDOW_TABCONTROL_GUID);
            const double HORIZ_WIDTH = 250, VERT_HEIGHT = 250;

            toolWindowUIs.Add(AppToolWindowLocation.Left, new ToolWindowUI(this, AppToolWindowLocation.Left, HORIZ_WIDTH, horizontalContent, false, toolWindowManager.Create(new ToolWindowGroupManagerOptions(guid))));
            toolWindowUIs.Add(AppToolWindowLocation.Right, new ToolWindowUI(this, AppToolWindowLocation.Right, HORIZ_WIDTH, horizontalContent, true, toolWindowManager.Create(new ToolWindowGroupManagerOptions(guid))));
            toolWindowUIs.Add(AppToolWindowLocation.Top, new ToolWindowUI(this, AppToolWindowLocation.Top, VERT_HEIGHT, verticalContent, false, toolWindowManager.Create(new ToolWindowGroupManagerOptions(guid))));
            toolWindowUIs.Add(AppToolWindowLocation.Bottom, new ToolWindowUI(this, AppToolWindowLocation.Bottom, VERT_HEIGHT, verticalContent, true, toolWindowManager.Create(new ToolWindowGroupManagerOptions(guid))));
        }