Пример #1
0
        public virtual void ShowPad(PadDescriptor content)
        {
            PadContentCollection.Add(content);

            if (layout != null)
            {
                layout.ShowPad(content);
            }
        }
Пример #2
0
        public virtual void ShowPad(PadDescriptor content)
        {
            PadDescriptor hasPad = GetPad(content.GetType());

            if (hasPad == null)
            {
                PadContentCollection.Add(content);
            }
            if (layout != null)
            {
                layout.ShowPad(content);
            }
        }
Пример #3
0
        public void ShowPad(PadDescriptor content)
        {
            if (content == null)
            {
                throw new ArgumentNullException("content");
            }
            PadContentCollection.Add(content);

            if (layout != null)
            {
                layout.ShowPad(content);
            }
        }
Пример #4
0
        private void InitDockForm()
        {
            FormProperties formProperties = new FormProperties();

            formProperties.Show(dockPanel, DockState.DockRight);
            PadContentCollection.Add(formProperties);
            FormsDesignerViewContent formsDVC = WorkbenchSingleton.Workbench.ActiveContent as FormsDesignerViewContent;

            if (formsDVC != null)
            {
                ToolboxService toolboxService = formsDVC.DesignSurface.GetService(typeof(IToolboxService)) as ToolboxService;
                FormToolBox    formTool       = new FormToolBox(toolboxService);
                formTool.Show(dockPanel, DockState.DockLeft);
                formTool.DockPanel.DockLeftPortion = 0.15;
                formTool.AutoHidePortion           = 0.15;
                PadContentCollection.Add(formTool);
            }
            dockPanel.Documents.First().DockHandler.Activate();
        }