Ejemplo n.º 1
0
        private void InitOutlook(DefaultWorkbench wbForm)
        {
            //var NavBar = new NavBar();
            //NavBar.Dock = System.Windows.Forms.DockStyle.Left;
            //NavBar.Location = new System.Drawing.Point(0, 85);
            //NavBar.Name = "NavBar";
            //NavBar.Size = new System.Drawing.Size(160, 600);
            //NavBar.TabIndex = 1;
            //NavBar.ImageButtonClick += new NavBar.ButtonClickHander(this.NavBar_ImageButtonClick);

            wbForm.Controls.Add(wbForm.Outlook);

            var contentView = new System.Windows.Forms.Panel();

            contentView.Dock     = System.Windows.Forms.DockStyle.Fill;
            contentView.Location = new System.Drawing.Point(160, 85);
            contentView.Name     = "PnlContent";
            contentView.Size     = new System.Drawing.Size(830, 600);
            contentView.TabIndex = 2;

            //默认usercontrols
            var defaultControl = new UserControl();

            contentView.Controls.Add(defaultControl);

            wbForm.Controls.Add(contentView);
            //wbForm.Controls.Add(NavBar);
        }
Ejemplo n.º 2
0
        public void Attach(IWorkbench workbench)
        {
            wbForm = (DefaultWorkbench)workbench;
            wbForm.SuspendLayout();
            wbForm.IsMdiContainer = true;

            //dockPanel = new WeifenLuo.WinFormsUI.DockPanel();
            //dockPanel = new WeifenLuo.WinFormsUI.Docking.DockPanel();
            //dockPanel.ActiveAutoHideContent = null;
            //dockPanel.Dock = DockStyle.Fill;

            //wbForm.Controls.Add(dockPanel);// 将eifenLuo.WinFormsUI.DockPanel dockpanel加入到controls



            InitOutlook(wbForm);
            wbForm.TopMenu.Dock = System.Windows.Forms.DockStyle.Top;
            wbForm.Controls.Add(wbForm.TopMenu);// 加入菜单
            LoadConfiguration();

            //ShowPads();
            //ShowViewContents();
            //RedrawAllComponents();

            wbForm.ResumeLayout(false);
        }
        public static void InitializeWorkbench()
        {
            workbench = new DefaultWorkbench();
            //MessageService..MainForm = workbench;

            caller = new STAThreadCaller(workbench);

            workbench.InitializeWorkspace();

            //设置工作台layout,同时将工作带在workbench.WorkbenchLayout的set方法中传递进去
            workbench.WorkbenchLayout = new SdiWorkbenchLayout();
        }
Ejemplo n.º 4
0
        public static void InitializeWorkbench()
        {
            workbench = new DefaultWorkbench();
            //MessageService..MainForm = workbench;

            caller = new STAThreadCaller(workbench);

            workbench.InitializeWorkspace();

            //设置工作台layout,同时将工作带在workbench.WorkbenchLayout的set方法中传递进去
            workbench.WorkbenchLayout = new SdiWorkbenchLayout();
        }
        private void InitOutlook(DefaultWorkbench wbForm)
        {
            //var NavBar = new NavBar();
            //NavBar.Dock = System.Windows.Forms.DockStyle.Left;
            //NavBar.Location = new System.Drawing.Point(0, 85);
            //NavBar.Name = "NavBar";
            //NavBar.Size = new System.Drawing.Size(160, 600);
            //NavBar.TabIndex = 1;
            //NavBar.ImageButtonClick += new NavBar.ButtonClickHander(this.NavBar_ImageButtonClick);

            wbForm.Controls.Add(wbForm.Outlook);

            var contentView = new System.Windows.Forms.Panel();
            contentView.Dock = System.Windows.Forms.DockStyle.Fill;
            contentView.Location = new System.Drawing.Point(160, 85);
            contentView.Name = "PnlContent";
            contentView.Size = new System.Drawing.Size(830, 600);
            contentView.TabIndex = 2;

            //Ĭ��usercontrols
            var defaultControl = new UserControl();
            contentView.Controls.Add(defaultControl);

            wbForm.Controls.Add(contentView);
            //wbForm.Controls.Add(NavBar);
        }
        public void Attach(IWorkbench workbench)
        {
            wbForm = (DefaultWorkbench)workbench;
            wbForm.SuspendLayout();
            wbForm.IsMdiContainer = true;

            //dockPanel = new WeifenLuo.WinFormsUI.DockPanel();
            //dockPanel = new WeifenLuo.WinFormsUI.Docking.DockPanel();
            //dockPanel.ActiveAutoHideContent = null;
            //dockPanel.Dock = DockStyle.Fill;

            //wbForm.Controls.Add(dockPanel);// ��eifenLuo.WinFormsUI.DockPanel dockpanel���뵽controls

            InitOutlook(wbForm);
            wbForm.TopMenu.Dock = System.Windows.Forms.DockStyle.Top;
            wbForm.Controls.Add(wbForm.TopMenu);// ����˵�
            LoadConfiguration();

            //ShowPads();
            //ShowViewContents();
            //RedrawAllComponents();

            wbForm.ResumeLayout(false);
        }