| | |
| | | /// </summary> |
| | | private void InitializeComponent() |
| | | { |
| | | mapViewProjectListContainer1 = new WinFrmUI.MapViewProjectListContainer(); |
| | | components = new System.ComponentModel.Container(); |
| | | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); |
| | | tileNavPane = new DevExpress.XtraBars.Navigation.TileNavPane(); |
| | | nbTitle = new DevExpress.XtraBars.Navigation.NavButton(); |
| | | nbProjectMgr = new DevExpress.XtraBars.Navigation.NavButton(); |
| | | nbBimfaceMgr = new DevExpress.XtraBars.Navigation.NavButton(); |
| | | nbSystemConfig = new DevExpress.XtraBars.Navigation.NavButton(); |
| | | nbMin = new DevExpress.XtraBars.Navigation.NavButton(); |
| | | nbNormal = new DevExpress.XtraBars.Navigation.NavButton(); |
| | | nbClose = new DevExpress.XtraBars.Navigation.NavButton(); |
| | | documentManager1 = new DevExpress.XtraBars.Docking2010.DocumentManager(components); |
| | | barManager1 = new DevExpress.XtraBars.BarManager(components); |
| | | bar3 = new DevExpress.XtraBars.Bar(); |
| | | barStaticOwner = new DevExpress.XtraBars.BarStaticItem(); |
| | | barStaticVersion = new DevExpress.XtraBars.BarStaticItem(); |
| | | barDockControlTop = new DevExpress.XtraBars.BarDockControl(); |
| | | barDockControlBottom = new DevExpress.XtraBars.BarDockControl(); |
| | | barDockControlLeft = new DevExpress.XtraBars.BarDockControl(); |
| | | barDockControlRight = new DevExpress.XtraBars.BarDockControl(); |
| | | dockManager1 = new DevExpress.XtraBars.Docking.DockManager(components); |
| | | barDockingMenuItem1 = new DevExpress.XtraBars.BarDockingMenuItem(); |
| | | tabbedView1 = new DevExpress.XtraBars.Docking2010.Views.Tabbed.TabbedView(components); |
| | | flyoutPanel1 = new DevExpress.Utils.FlyoutPanel(); |
| | | flyoutPanelControl1 = new DevExpress.Utils.FlyoutPanelControl(); |
| | | svgImg32 = new DevExpress.Utils.SvgImageCollection(components); |
| | | ((System.ComponentModel.ISupportInitialize)tileNavPane).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)documentManager1).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)barManager1).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)dockManager1).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)tabbedView1).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)flyoutPanel1).BeginInit(); |
| | | flyoutPanel1.SuspendLayout(); |
| | | ((System.ComponentModel.ISupportInitialize)flyoutPanelControl1).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)svgImg32).BeginInit(); |
| | | SuspendLayout(); |
| | | // |
| | | // mapViewProjectListContainer1 |
| | | // tileNavPane |
| | | // |
| | | mapViewProjectListContainer1.Dock = DockStyle.Fill; |
| | | mapViewProjectListContainer1.Location = new Point(0, 0); |
| | | mapViewProjectListContainer1.Name = "mapViewProjectListContainer1"; |
| | | mapViewProjectListContainer1.Size = new Size(800, 450); |
| | | mapViewProjectListContainer1.TabIndex = 0; |
| | | tileNavPane.Buttons.Add(nbTitle); |
| | | tileNavPane.Buttons.Add(nbProjectMgr); |
| | | tileNavPane.Buttons.Add(nbBimfaceMgr); |
| | | tileNavPane.Buttons.Add(nbSystemConfig); |
| | | tileNavPane.Buttons.Add(nbMin); |
| | | tileNavPane.Buttons.Add(nbNormal); |
| | | tileNavPane.Buttons.Add(nbClose); |
| | | // |
| | | // tileNavCategory1 |
| | | // |
| | | tileNavPane.DefaultCategory.Name = "tileNavCategory1"; |
| | | // |
| | | // |
| | | // |
| | | tileNavPane.DefaultCategory.Tile.DropDownOptions.BeakColor = Color.Empty; |
| | | tileNavPane.Dock = DockStyle.Top; |
| | | tileNavPane.Location = new Point(0, 0); |
| | | tileNavPane.Name = "tileNavPane"; |
| | | tileNavPane.Size = new Size(1189, 53); |
| | | tileNavPane.TabIndex = 0; |
| | | tileNavPane.Text = "tileNavPane1"; |
| | | tileNavPane.ElementClick += tileNavPane_ElementClick; |
| | | tileNavPane.MouseDown += tileNavPane_MouseDown; |
| | | // |
| | | // nbTitle |
| | | // |
| | | nbTitle.Caption = "循环水分析系统"; |
| | | nbTitle.ImageOptions.AllowGlyphSkinning = DevExpress.Utils.DefaultBoolean.True; |
| | | nbTitle.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("nbTitle.ImageOptions.SvgImage"); |
| | | nbTitle.Name = "nbTitle"; |
| | | nbTitle.ElementClick += nbTitle_ElementClick; |
| | | // |
| | | // nbProjectMgr |
| | | // |
| | | nbProjectMgr.Alignment = DevExpress.XtraBars.Navigation.NavButtonAlignment.Right; |
| | | nbProjectMgr.Caption = "项目管理"; |
| | | nbProjectMgr.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("nbProjectMgr.ImageOptions.SvgImage"); |
| | | nbProjectMgr.ImageOptions.SvgImageSize = new Size(24, 24); |
| | | nbProjectMgr.Name = "nbProjectMgr"; |
| | | nbProjectMgr.ElementClick += nbProjectMgr_ElementClick; |
| | | // |
| | | // nbBimfaceMgr |
| | | // |
| | | nbBimfaceMgr.Alignment = DevExpress.XtraBars.Navigation.NavButtonAlignment.Right; |
| | | nbBimfaceMgr.Caption = "模型管理"; |
| | | nbBimfaceMgr.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("nbBimfaceMgr.ImageOptions.SvgImage"); |
| | | nbBimfaceMgr.ImageOptions.SvgImageSize = new Size(24, 24); |
| | | nbBimfaceMgr.Name = "nbBimfaceMgr"; |
| | | nbBimfaceMgr.ElementClick += nbBimfaceMgr_ElementClick; |
| | | // |
| | | // nbSystemConfig |
| | | // |
| | | nbSystemConfig.Alignment = DevExpress.XtraBars.Navigation.NavButtonAlignment.Right; |
| | | nbSystemConfig.Caption = "系统配置"; |
| | | nbSystemConfig.Name = "nbSystemConfig"; |
| | | nbSystemConfig.ElementClick += nbSystemConfig_ElementClick; |
| | | // |
| | | // nbMin |
| | | // |
| | | nbMin.Alignment = DevExpress.XtraBars.Navigation.NavButtonAlignment.Right; |
| | | nbMin.Caption = null; |
| | | nbMin.ImageOptions.AllowGlyphSkinning = DevExpress.Utils.DefaultBoolean.True; |
| | | nbMin.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("nbMin.ImageOptions.SvgImage"); |
| | | nbMin.ImageOptions.SvgImageSize = new Size(24, 24); |
| | | nbMin.Name = "nbMin"; |
| | | nbMin.ElementClick += nbMin_ElementClick; |
| | | // |
| | | // nbNormal |
| | | // |
| | | nbNormal.Alignment = DevExpress.XtraBars.Navigation.NavButtonAlignment.Right; |
| | | nbNormal.Caption = null; |
| | | nbNormal.ImageOptions.AllowGlyphSkinning = DevExpress.Utils.DefaultBoolean.True; |
| | | nbNormal.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("nbNormal.ImageOptions.SvgImage"); |
| | | nbNormal.ImageOptions.SvgImageSize = new Size(20, 20); |
| | | nbNormal.Name = "nbNormal"; |
| | | nbNormal.ElementClick += nbNormal_ElementClick; |
| | | // |
| | | // nbClose |
| | | // |
| | | nbClose.Alignment = DevExpress.XtraBars.Navigation.NavButtonAlignment.Right; |
| | | nbClose.Caption = null; |
| | | nbClose.ImageOptions.AllowGlyphSkinning = DevExpress.Utils.DefaultBoolean.True; |
| | | nbClose.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("nbClose.ImageOptions.SvgImage"); |
| | | nbClose.ImageOptions.SvgImageSize = new Size(24, 24); |
| | | nbClose.Name = "nbClose"; |
| | | nbClose.ElementClick += nabClose_ElementClick; |
| | | // |
| | | // documentManager1 |
| | | // |
| | | documentManager1.ContainerControl = this; |
| | | documentManager1.MenuManager = barManager1; |
| | | documentManager1.View = tabbedView1; |
| | | documentManager1.ViewCollection.AddRange(new DevExpress.XtraBars.Docking2010.Views.BaseView[] { tabbedView1 }); |
| | | // |
| | | // barManager1 |
| | | // |
| | | barManager1.Bars.AddRange(new DevExpress.XtraBars.Bar[] { bar3 }); |
| | | barManager1.DockControls.Add(barDockControlTop); |
| | | barManager1.DockControls.Add(barDockControlBottom); |
| | | barManager1.DockControls.Add(barDockControlLeft); |
| | | barManager1.DockControls.Add(barDockControlRight); |
| | | barManager1.DockManager = dockManager1; |
| | | barManager1.Form = this; |
| | | barManager1.Items.AddRange(new DevExpress.XtraBars.BarItem[] { barStaticOwner, barStaticVersion, barDockingMenuItem1 }); |
| | | barManager1.MaxItemId = 4; |
| | | barManager1.StatusBar = bar3; |
| | | // |
| | | // bar3 |
| | | // |
| | | bar3.BarName = "Status bar"; |
| | | bar3.CanDockStyle = DevExpress.XtraBars.BarCanDockStyle.Bottom; |
| | | bar3.DockCol = 0; |
| | | bar3.DockRow = 0; |
| | | bar3.DockStyle = DevExpress.XtraBars.BarDockStyle.Bottom; |
| | | bar3.LinksPersistInfo.AddRange(new DevExpress.XtraBars.LinkPersistInfo[] { new DevExpress.XtraBars.LinkPersistInfo(barStaticOwner), new DevExpress.XtraBars.LinkPersistInfo(barStaticVersion) }); |
| | | bar3.OptionsBar.AllowQuickCustomization = false; |
| | | bar3.OptionsBar.DrawDragBorder = false; |
| | | bar3.OptionsBar.UseWholeRow = true; |
| | | bar3.Text = "Status bar"; |
| | | // |
| | | // barStaticOwner |
| | | // |
| | | barStaticOwner.Caption = "上海义维流体科技有限公司"; |
| | | barStaticOwner.Id = 1; |
| | | barStaticOwner.Name = "barStaticOwner"; |
| | | // |
| | | // barStaticVersion |
| | | // |
| | | barStaticVersion.Alignment = DevExpress.XtraBars.BarItemLinkAlignment.Right; |
| | | barStaticVersion.Caption = "版本:1.0.0.0"; |
| | | barStaticVersion.Id = 2; |
| | | barStaticVersion.Name = "barStaticVersion"; |
| | | // |
| | | // barDockControlTop |
| | | // |
| | | barDockControlTop.CausesValidation = false; |
| | | barDockControlTop.Dock = DockStyle.Top; |
| | | barDockControlTop.Location = new Point(0, 0); |
| | | barDockControlTop.Manager = barManager1; |
| | | barDockControlTop.Size = new Size(1189, 0); |
| | | // |
| | | // barDockControlBottom |
| | | // |
| | | barDockControlBottom.CausesValidation = false; |
| | | barDockControlBottom.Dock = DockStyle.Bottom; |
| | | barDockControlBottom.Location = new Point(0, 710); |
| | | barDockControlBottom.Manager = barManager1; |
| | | barDockControlBottom.Size = new Size(1189, 30); |
| | | // |
| | | // barDockControlLeft |
| | | // |
| | | barDockControlLeft.CausesValidation = false; |
| | | barDockControlLeft.Dock = DockStyle.Left; |
| | | barDockControlLeft.Location = new Point(0, 0); |
| | | barDockControlLeft.Manager = barManager1; |
| | | barDockControlLeft.Size = new Size(0, 710); |
| | | // |
| | | // barDockControlRight |
| | | // |
| | | barDockControlRight.CausesValidation = false; |
| | | barDockControlRight.Dock = DockStyle.Right; |
| | | barDockControlRight.Location = new Point(1189, 0); |
| | | barDockControlRight.Manager = barManager1; |
| | | barDockControlRight.Size = new Size(0, 710); |
| | | // |
| | | // dockManager1 |
| | | // |
| | | dockManager1.Form = this; |
| | | dockManager1.MenuManager = barManager1; |
| | | dockManager1.TopZIndexControls.AddRange(new string[] { "DevExpress.XtraBars.BarDockControl", "DevExpress.XtraBars.StandaloneBarDockControl", "System.Windows.Forms.MenuStrip", "System.Windows.Forms.StatusStrip", "System.Windows.Forms.StatusBar", "DevExpress.XtraBars.Ribbon.RibbonStatusBar", "DevExpress.XtraBars.Ribbon.RibbonControl", "DevExpress.XtraBars.Navigation.OfficeNavigationBar", "DevExpress.XtraBars.Navigation.TileNavPane", "DevExpress.XtraBars.TabFormControl", "DevExpress.XtraBars.FluentDesignSystem.FluentDesignFormControl", "DevExpress.XtraBars.ToolbarForm.ToolbarFormControl" }); |
| | | // |
| | | // barDockingMenuItem1 |
| | | // |
| | | barDockingMenuItem1.Caption = "Window"; |
| | | barDockingMenuItem1.Id = 3; |
| | | barDockingMenuItem1.Name = "barDockingMenuItem1"; |
| | | // |
| | | // tabbedView1 |
| | | // |
| | | tabbedView1.DocumentProperties.AllowPin = true; |
| | | tabbedView1.DocumentSelected += tabbedView1_DocumentSelected; |
| | | tabbedView1.DocumentAdded += tabbedView1_DocumentAdded; |
| | | tabbedView1.DocumentActivated += tabbedView1_DocumentActivated; |
| | | tabbedView1.DocumentClosed += tabbedView1_DocumentClosed; |
| | | // |
| | | // flyoutPanel1 |
| | | // |
| | | flyoutPanel1.AnimationRate = 100; |
| | | flyoutPanel1.Controls.Add(flyoutPanelControl1); |
| | | flyoutPanel1.Location = new Point(494, 133); |
| | | flyoutPanel1.Name = "flyoutPanel1"; |
| | | flyoutPanel1.Options.CloseOnOuterClick = true; |
| | | flyoutPanel1.OptionsBeakPanel.BeakLocation = DevExpress.Utils.BeakPanelBeakLocation.Top; |
| | | flyoutPanel1.ParentForm = this; |
| | | flyoutPanel1.Size = new Size(200, 100); |
| | | flyoutPanel1.TabIndex = 5; |
| | | // |
| | | // flyoutPanelControl1 |
| | | // |
| | | flyoutPanelControl1.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder; |
| | | flyoutPanelControl1.Dock = DockStyle.Fill; |
| | | flyoutPanelControl1.FlyoutPanel = flyoutPanel1; |
| | | flyoutPanelControl1.Location = new Point(0, 0); |
| | | flyoutPanelControl1.Name = "flyoutPanelControl1"; |
| | | flyoutPanelControl1.Size = new Size(200, 100); |
| | | flyoutPanelControl1.TabIndex = 0; |
| | | // |
| | | // svgImg32 |
| | | // |
| | | svgImg32.ImageSize = new Size(32, 32); |
| | | svgImg32.Add("bold", "image://svgimages/outlook inspired/bold.svg"); |
| | | // |
| | | // MainForm |
| | | // |
| | | AutoScaleDimensions = new SizeF(7F, 17F); |
| | | AutoScaleDimensions = new SizeF(7F, 14F); |
| | | AutoScaleMode = AutoScaleMode.Font; |
| | | ClientSize = new Size(800, 450); |
| | | Controls.Add(mapViewProjectListContainer1); |
| | | ClientSize = new Size(1189, 740); |
| | | Controls.Add(flyoutPanel1); |
| | | Controls.Add(tileNavPane); |
| | | Controls.Add(barDockControlLeft); |
| | | Controls.Add(barDockControlRight); |
| | | Controls.Add(barDockControlBottom); |
| | | Controls.Add(barDockControlTop); |
| | | Margin = new Padding(3, 2, 3, 2); |
| | | Name = "MainForm"; |
| | | Text = "Form1"; |
| | | WindowState = FormWindowState.Maximized; |
| | | FormClosing += MainForm_FormClosing; |
| | | FormClosed += MainForm_FormClosed; |
| | | Load += MainForm_Load; |
| | | Shown += MainForm_Shown; |
| | | Resize += MainForm_Resize; |
| | | ((System.ComponentModel.ISupportInitialize)tileNavPane).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)documentManager1).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)barManager1).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)dockManager1).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)tabbedView1).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)flyoutPanel1).EndInit(); |
| | | flyoutPanel1.ResumeLayout(false); |
| | | ((System.ComponentModel.ISupportInitialize)flyoutPanelControl1).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)svgImg32).EndInit(); |
| | | ResumeLayout(false); |
| | | PerformLayout(); |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | private WinFrmUI.MapViewProjectListContainer mapViewProjectListContainer1; |
| | | private DevExpress.XtraBars.Navigation.TileNavPane tileNavPane; |
| | | private DevExpress.XtraBars.Navigation.NavButton nbTitle; |
| | | private DevExpress.XtraBars.Docking2010.DocumentManager documentManager1; |
| | | private DevExpress.XtraBars.BarDockControl barDockControlLeft; |
| | | private DevExpress.XtraBars.BarManager barManager1; |
| | | private DevExpress.XtraBars.Bar bar3; |
| | | private DevExpress.XtraBars.BarDockControl barDockControlTop; |
| | | private DevExpress.XtraBars.BarDockControl barDockControlBottom; |
| | | private DevExpress.XtraBars.BarDockControl barDockControlRight; |
| | | private DevExpress.XtraBars.Docking2010.Views.Tabbed.TabbedView tabbedView1; |
| | | private DevExpress.XtraBars.BarStaticItem barStaticOwner; |
| | | private DevExpress.XtraBars.BarStaticItem barStaticVersion; |
| | | private DevExpress.XtraBars.BarDockingMenuItem barDockingMenuItem1; |
| | | private DevExpress.XtraBars.Navigation.NavButton nbMin; |
| | | private DevExpress.XtraBars.Navigation.NavButton nbNormal; |
| | | private DevExpress.XtraBars.Navigation.NavButton nbClose; |
| | | private DevExpress.XtraBars.Docking.DockManager dockManager1; |
| | | private DevExpress.XtraBars.Navigation.NavButton nbProjectMgr; |
| | | private DevExpress.XtraBars.Navigation.NavButton nbBimfaceMgr; |
| | | private DevExpress.Utils.FlyoutPanel flyoutPanel1; |
| | | private DevExpress.Utils.FlyoutPanelControl flyoutPanelControl1; |
| | | private DevExpress.Utils.SvgImageCollection svgImg32; |
| | | private DevExpress.XtraBars.Navigation.NavButton nbSystemConfig; |
| | | } |
| | | } |