コード例 #1
0
 /// <summary>
 /// 初始化程序界面
 /// </summary>
 private void InitGui()
 {
     _dockmanager1 = new DockingManager(this.ChildrenPanel1, Crownwood.DotNetMagic.Common.VisualStyle.Office2007Silver);
     //this.tabControlCenter.Dock = DockStyle.Fill;
     _dockmanager1.InnerControl = this.axTOCControl1;
     _SlightWorkSpaceCtrl       = new MapSlightSeeing(this);
     _SlightWorkSpaceCtrl.Dock  = DockStyle.Fill;
     _workspaceContent          = _dockmanager1.Contents.Add(this._SlightWorkSpaceCtrl);
     _dockmanager1.AddContentWithState(_workspaceContent, Crownwood.DotNetMagic.Docking.State.DockBottom);
 }
コード例 #2
0
        // 初始化程序界面
        private void InitGui()
        {
            _dockmanager1 = new DockingManager(this.panelmain, Crownwood.DotNetMagic.Common.VisualStyle.Office2007Silver);
            _dockmanager1.InnerControl = this.axMapControl1;
            _WorkSpaceCtrl             = new MyMapContext(this);
            _WorkSpaceCtrl.Dock        = DockStyle.Fill;
            _workspaceContent          = _dockmanager1.Contents.Add(this._WorkSpaceCtrl);
            _dockmanager1.AddContentWithState(_workspaceContent, Crownwood.DotNetMagic.Docking.State.DockLeft);

            _dockmanager2 = new DockingManager(this.panelmain, Crownwood.DotNetMagic.Common.VisualStyle.Office2007Silver);
            _dockmanager2.InnerControl = this.axMapControl1;
            _Management        = new ResourceManagement(this);
            _Management.Dock   = DockStyle.Fill;
            _workspaceContent2 = _dockmanager2.Contents.Add(this._Management);
            _dockmanager2.AddContentWithState(_workspaceContent2, Crownwood.DotNetMagic.Docking.State.DockRight);
            IfControlEnabled();
        }