| | |
| | | colMaterial = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colCaliber = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colCoefficient = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colLowerLimit = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colSortCode = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDetail = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | repositoryItemButtonEdit1 = new DevExpress.XtraEditors.Repository.RepositoryItemButtonEdit(); |
| | | colAngle = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | svgImg32 = new DevExpress.Utils.SvgImageCollection(components); |
| | | behaviorManager1 = new DevExpress.Utils.Behaviors.BehaviorManager(components); |
| | | dragDropEvents1 = new DevExpress.Utils.DragDrop.DragDropEvents(components); |
| | |
| | | ribbonControl1.ShowExpandCollapseButton = DevExpress.Utils.DefaultBoolean.False; |
| | | ribbonControl1.ShowPageHeadersMode = DevExpress.XtraBars.Ribbon.ShowPageHeadersMode.ShowOnMultiplePages; |
| | | ribbonControl1.ShowToolbarCustomizeItem = false; |
| | | ribbonControl1.Size = new Size(996, 128); |
| | | ribbonControl1.Size = new Size(996, 101); |
| | | ribbonControl1.Toolbar.ShowCustomizeItem = false; |
| | | ribbonControl1.ToolbarLocation = DevExpress.XtraBars.Ribbon.RibbonQuickAccessToolbarLocation.Hidden; |
| | | // |
| | |
| | | panelControl1.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder; |
| | | panelControl1.Controls.Add(gridControl1); |
| | | panelControl1.Dock = DockStyle.Fill; |
| | | panelControl1.Location = new Point(1, 129); |
| | | panelControl1.Location = new Point(1, 102); |
| | | panelControl1.Name = "panelControl1"; |
| | | panelControl1.Padding = new Padding(0, 1, 0, 0); |
| | | panelControl1.Size = new Size(996, 540); |
| | | panelControl1.Size = new Size(996, 567); |
| | | panelControl1.TabIndex = 3; |
| | | // |
| | | // gridControl1 |
| | |
| | | gridControl1.MenuManager = ribbonControl1; |
| | | gridControl1.Name = "gridControl1"; |
| | | gridControl1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] { repositoryItemButtonEdit1 }); |
| | | gridControl1.Size = new Size(996, 539); |
| | | gridControl1.Size = new Size(996, 566); |
| | | gridControl1.TabIndex = 0; |
| | | gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 }); |
| | | // |
| | |
| | | // gridView1 |
| | | // |
| | | behaviorManager1.SetBehaviors(gridView1, new DevExpress.Utils.Behaviors.Behavior[] { DevExpress.Utils.DragDrop.DragDropBehavior.Create(typeof(DevExpress.XtraGrid.Extensions.ColumnViewDragDropSource), true, true, true, true, dragDropEvents1) }); |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colID, colName, colMaterial, colCaliber, colCoefficient, colLowerLimit, colSortCode, colDescription, colDetail }); |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colID, colName, colMaterial, colCaliber, colCoefficient, colSortCode, colDescription, colDetail, colAngle }); |
| | | gridView1.GridControl = gridControl1; |
| | | gridView1.Name = "gridView1"; |
| | | gridView1.RowCellClick += gridView1_RowCellClick; |
| | |
| | | colID.MaxWidth = 100; |
| | | colID.MinWidth = 150; |
| | | colID.Name = "colID"; |
| | | colID.Width = 150; |
| | | colID.Width = 100; |
| | | // |
| | | // colName |
| | | // |
| | |
| | | colMaterial.MinWidth = 150; |
| | | colMaterial.Name = "colMaterial"; |
| | | colMaterial.Visible = true; |
| | | colMaterial.VisibleIndex = 1; |
| | | colMaterial.VisibleIndex = 2; |
| | | colMaterial.Width = 150; |
| | | // |
| | | // colCaliber |
| | |
| | | colCaliber.MinWidth = 100; |
| | | colCaliber.Name = "colCaliber"; |
| | | colCaliber.Visible = true; |
| | | colCaliber.VisibleIndex = 2; |
| | | colCaliber.VisibleIndex = 1; |
| | | colCaliber.Width = 100; |
| | | // |
| | | // colCoefficient |
| | |
| | | colCoefficient.MinWidth = 100; |
| | | colCoefficient.Name = "colCoefficient"; |
| | | colCoefficient.Visible = true; |
| | | colCoefficient.VisibleIndex = 3; |
| | | colCoefficient.VisibleIndex = 4; |
| | | colCoefficient.Width = 100; |
| | | // |
| | | // colLowerLimit |
| | | // |
| | | colLowerLimit.FieldName = "LowerLimit"; |
| | | colLowerLimit.MaxWidth = 100; |
| | | colLowerLimit.MinWidth = 100; |
| | | colLowerLimit.Name = "colLowerLimit"; |
| | | colLowerLimit.Visible = true; |
| | | colLowerLimit.VisibleIndex = 4; |
| | | colLowerLimit.Width = 100; |
| | | // |
| | | // colSortCode |
| | | // |
| | |
| | | repositoryItemButtonEdit1.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "", -1, true, true, false, editorButtonImageOptions1, new DevExpress.Utils.KeyShortcut(Keys.None), serializableAppearanceObject1, serializableAppearanceObject2, serializableAppearanceObject3, serializableAppearanceObject4, "", null, null, DevExpress.Utils.ToolTipAnchor.Default) }); |
| | | repositoryItemButtonEdit1.Name = "repositoryItemButtonEdit1"; |
| | | repositoryItemButtonEdit1.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.HideTextEditor; |
| | | // |
| | | // colAngle |
| | | // |
| | | colAngle.FieldName = "Angle"; |
| | | colAngle.Name = "colAngle"; |
| | | colAngle.Visible = true; |
| | | colAngle.VisibleIndex = 3; |
| | | // |
| | | // svgImg32 |
| | | // |
| | |
| | | private DevExpress.XtraBars.Ribbon.RibbonPageGroup ribbonPageGroup1; |
| | | private DevExpress.Utils.Behaviors.BehaviorManager behaviorManager1; |
| | | private DevExpress.Utils.DragDrop.DragDropEvents dragDropEvents1; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colAngle; |
| | | } |
| | | } |