| | |
| | | colRoughness = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colMinorLoss = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDbLocked = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colMaterial = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | ((ISupportInitialize)gridControl1).BeginInit(); |
| | | ((ISupportInitialize)hydroTranslationViewModelBindingSource).BeginInit(); |
| | | ((ISupportInitialize)gridView1).BeginInit(); |
| | |
| | | // |
| | | // gridView1 |
| | | // |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colCode, colName, colFlagsString, colStartCode, colEndCode, colLinkStatus, colDiameter, colLength, colRoughness, colMinorLoss, colDescription }); |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colDbLocked, colCode, colName, colFlagsString, colStartCode, colEndCode, colLinkStatus, colDiameter, colLength, colMaterial, colRoughness, colMinorLoss, colDescription }); |
| | | gridView1.GridControl = gridControl1; |
| | | gridView1.Name = "gridView1"; |
| | | gridView1.OptionsFind.AlwaysVisible = true; |
| | |
| | | colCode.FieldName = "Code"; |
| | | colCode.Name = "colCode"; |
| | | colCode.Visible = true; |
| | | colCode.VisibleIndex = 0; |
| | | colCode.VisibleIndex = 1; |
| | | // |
| | | // colName |
| | | // |
| | | colName.FieldName = "Name"; |
| | | colName.Name = "colName"; |
| | | colName.Visible = true; |
| | | colName.VisibleIndex = 1; |
| | | colName.VisibleIndex = 2; |
| | | // |
| | | // colFlagsString |
| | | // |
| | | colFlagsString.FieldName = "FlagsString"; |
| | | colFlagsString.Name = "colFlagsString"; |
| | | colFlagsString.Visible = true; |
| | | colFlagsString.VisibleIndex = 2; |
| | | colFlagsString.VisibleIndex = 3; |
| | | // |
| | | // colStartCode |
| | | // |
| | | colStartCode.FieldName = "StartCode"; |
| | | colStartCode.Name = "colStartCode"; |
| | | colStartCode.Visible = true; |
| | | colStartCode.VisibleIndex = 3; |
| | | colStartCode.VisibleIndex = 4; |
| | | // |
| | | // colEndCode |
| | | // |
| | | colEndCode.FieldName = "EndCode"; |
| | | colEndCode.Name = "colEndCode"; |
| | | colEndCode.Visible = true; |
| | | colEndCode.VisibleIndex = 4; |
| | | colEndCode.VisibleIndex = 5; |
| | | // |
| | | // colLinkStatus |
| | | // |
| | | colLinkStatus.FieldName = "LinkStatus"; |
| | | colLinkStatus.Name = "colLinkStatus"; |
| | | colLinkStatus.Visible = true; |
| | | colLinkStatus.VisibleIndex = 5; |
| | | colLinkStatus.VisibleIndex = 6; |
| | | // |
| | | // colDiameter |
| | | // |
| | | colDiameter.FieldName = "Diameter"; |
| | | colDiameter.Name = "colDiameter"; |
| | | colDiameter.Visible = true; |
| | | colDiameter.VisibleIndex = 6; |
| | | colDiameter.VisibleIndex = 7; |
| | | // |
| | | // colLength |
| | | // |
| | | colLength.FieldName = "Length"; |
| | | colLength.Name = "colLength"; |
| | | colLength.Visible = true; |
| | | colLength.VisibleIndex = 7; |
| | | colLength.VisibleIndex = 8; |
| | | // |
| | | // colRoughness |
| | | // |
| | | colRoughness.FieldName = "Roughness"; |
| | | colRoughness.Name = "colRoughness"; |
| | | colRoughness.Visible = true; |
| | | colRoughness.VisibleIndex = 8; |
| | | colRoughness.VisibleIndex = 10; |
| | | // |
| | | // colMinorLoss |
| | | // |
| | | colMinorLoss.FieldName = "MinorLoss"; |
| | | colMinorLoss.Name = "colMinorLoss"; |
| | | colMinorLoss.Visible = true; |
| | | colMinorLoss.VisibleIndex = 9; |
| | | colMinorLoss.VisibleIndex = 11; |
| | | // |
| | | // colDescription |
| | | // |
| | | colDescription.FieldName = "Description"; |
| | | colDescription.Name = "colDescription"; |
| | | colDescription.Visible = true; |
| | | colDescription.VisibleIndex = 10; |
| | | colDescription.VisibleIndex = 12; |
| | | // |
| | | // colDbLocked |
| | | // |
| | | colDbLocked.FieldName = "DbLocked"; |
| | | colDbLocked.Name = "colDbLocked"; |
| | | colDbLocked.Visible = true; |
| | | colDbLocked.VisibleIndex = 0; |
| | | // |
| | | // colMaterial |
| | | // |
| | | colMaterial.FieldName = "Material"; |
| | | colMaterial.Name = "colMaterial"; |
| | | colMaterial.Visible = true; |
| | | colMaterial.VisibleIndex = 9; |
| | | // |
| | | // HydroTranslationListCtrl |
| | | // |
| | |
| | | private DevExpress.XtraGrid.Columns.GridColumn colRoughness; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colMinorLoss; |
| | | private BindingSource hydroTranslationViewModelBindingSource; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colDbLocked; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colMaterial; |
| | | } |
| | | } |