| | |
| | | colName = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colFlagsString = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colQuality = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDemand = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDemandPattern = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colStartCode = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colEndCode = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colLinkStatus = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDiameter = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colLength = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colMinorLoss = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colRoughness = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | ((ISupportInitialize)gridControl1).BeginInit(); |
| | | ((ISupportInitialize)hydroExchangerViewModelBindingSource).BeginInit(); |
| | | ((ISupportInitialize)gridView1).BeginInit(); |
| | |
| | | // |
| | | // gridView1 |
| | | // |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colCode, colName, colFlagsString, colQuality, colDemand, colDemandPattern, colDescription }); |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colCode, colName, colFlagsString, colStartCode, colEndCode, colLinkStatus, colDiameter, colLength, colRoughness, colMinorLoss, colDescription }); |
| | | gridView1.GridControl = gridControl1; |
| | | gridView1.Name = "gridView1"; |
| | | gridView1.RowClick += gridView1_RowClick; |
| | |
| | | colDescription.FieldName = "Description"; |
| | | colDescription.Name = "colDescription"; |
| | | colDescription.Visible = true; |
| | | colDescription.VisibleIndex = 6; |
| | | colDescription.VisibleIndex = 10; |
| | | // |
| | | // colQuality |
| | | // colStartCode |
| | | // |
| | | colQuality.FieldName = "Quality"; |
| | | colQuality.Name = "colQuality"; |
| | | colQuality.Visible = true; |
| | | colQuality.VisibleIndex = 3; |
| | | colStartCode.FieldName = "StartCode"; |
| | | colStartCode.Name = "colStartCode"; |
| | | colStartCode.Visible = true; |
| | | colStartCode.VisibleIndex = 3; |
| | | // |
| | | // colDemand |
| | | // colEndCode |
| | | // |
| | | colDemand.FieldName = "Demand"; |
| | | colDemand.Name = "colDemand"; |
| | | colDemand.Visible = true; |
| | | colDemand.VisibleIndex = 4; |
| | | colEndCode.FieldName = "EndCode"; |
| | | colEndCode.Name = "colEndCode"; |
| | | colEndCode.Visible = true; |
| | | colEndCode.VisibleIndex = 4; |
| | | // |
| | | // colDemandPattern |
| | | // colLinkStatus |
| | | // |
| | | colDemandPattern.FieldName = "DemandPattern"; |
| | | colDemandPattern.Name = "colDemandPattern"; |
| | | colDemandPattern.Visible = true; |
| | | colDemandPattern.VisibleIndex = 5; |
| | | colLinkStatus.FieldName = "LinkStatus"; |
| | | colLinkStatus.Name = "colLinkStatus"; |
| | | colLinkStatus.Visible = true; |
| | | colLinkStatus.VisibleIndex = 5; |
| | | // |
| | | // colDiameter |
| | | // |
| | | colDiameter.FieldName = "Diameter"; |
| | | colDiameter.Name = "colDiameter"; |
| | | colDiameter.Visible = true; |
| | | colDiameter.VisibleIndex = 6; |
| | | // |
| | | // colLength |
| | | // |
| | | colLength.FieldName = "Length"; |
| | | colLength.Name = "colLength"; |
| | | colLength.Visible = true; |
| | | colLength.VisibleIndex = 7; |
| | | // |
| | | // colMinorLoss |
| | | // |
| | | colMinorLoss.FieldName = "MinorLoss"; |
| | | colMinorLoss.Name = "colMinorLoss"; |
| | | colMinorLoss.Visible = true; |
| | | colMinorLoss.VisibleIndex = 9; |
| | | // |
| | | // colRoughness |
| | | // |
| | | colRoughness.FieldName = "Roughness"; |
| | | colRoughness.Name = "colRoughness"; |
| | | colRoughness.Visible = true; |
| | | colRoughness.VisibleIndex = 8; |
| | | // |
| | | // HydroExchangerListCtrl |
| | | // |
| | |
| | | private DevExpress.XtraGrid.Columns.GridColumn colFlagsString; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colDescription; |
| | | private BindingSource hydroExchangerViewModelBindingSource; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colQuality; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colDemand; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colDemandPattern; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colStartCode; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colEndCode; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colLinkStatus; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colDiameter; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colLength; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colRoughness; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colMinorLoss; |
| | | } |
| | | } |