| | |
| | | gridControl1 = new DevExpress.XtraGrid.GridControl(); |
| | | hydroMonitorValueViewModelBindingSource = new BindingSource(components); |
| | | gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); |
| | | colRelation = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colParter = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colPropName = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colPropValue = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colUnitName = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colFlags = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | ((ISupportInitialize)gridControl1).BeginInit(); |
| | | ((ISupportInitialize)hydroMonitorValueViewModelBindingSource).BeginInit(); |
| | | ((ISupportInitialize)gridView1).BeginInit(); |
| | |
| | | // |
| | | // gridView1 |
| | | // |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colRelation, colPropName, colPropValue, colUnitName, colFlags, colDescription }); |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colParter, colPropName, colPropValue, colUnitName, colFlags, colDescription }); |
| | | gridView1.GridControl = gridControl1; |
| | | gridView1.Name = "gridView1"; |
| | | gridView1.RowClick += gridView1_RowClick; |
| | | // |
| | | // colRelation |
| | | // colParter |
| | | // |
| | | colRelation.FieldName = "Relation"; |
| | | colRelation.MaxWidth = 250; |
| | | colRelation.MinWidth = 150; |
| | | colRelation.Name = "colRelation"; |
| | | colRelation.OptionsColumn.AllowEdit = false; |
| | | colRelation.Visible = true; |
| | | colRelation.VisibleIndex = 0; |
| | | colRelation.Width = 150; |
| | | colParter.FieldName = "Parter"; |
| | | colParter.MaxWidth = 250; |
| | | colParter.MinWidth = 150; |
| | | colParter.Name = "colParter"; |
| | | colParter.OptionsColumn.AllowEdit = false; |
| | | colParter.Visible = true; |
| | | colParter.VisibleIndex = 0; |
| | | colParter.Width = 150; |
| | | // |
| | | // colPropName |
| | | // |
| | |
| | | // colPropValue |
| | | // |
| | | colPropValue.FieldName = "PropValue"; |
| | | colPropValue.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("colMonitorValue.ImageOptions.SvgImage"); |
| | | colPropValue.ImageOptions.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("colPropValue.ImageOptions.SvgImage"); |
| | | colPropValue.ImageOptions.SvgImageSize = new Size(16, 16); |
| | | colPropValue.MaxWidth = 150; |
| | | colPropValue.MinWidth = 150; |
| | |
| | | colUnitName.VisibleIndex = 3; |
| | | colUnitName.Width = 100; |
| | | // |
| | | // colDescription |
| | | // |
| | | colDescription.FieldName = "Description"; |
| | | colDescription.MinWidth = 100; |
| | | colDescription.Name = "colDescription"; |
| | | colDescription.OptionsColumn.AllowEdit = false; |
| | | colDescription.Visible = true; |
| | | colDescription.VisibleIndex = 5; |
| | | colDescription.Width = 100; |
| | | // |
| | | // colFlags |
| | | // |
| | | colFlags.FieldName = "Flags"; |
| | |
| | | colFlags.Visible = true; |
| | | colFlags.VisibleIndex = 4; |
| | | colFlags.Width = 100; |
| | | // |
| | | // colDescription |
| | | // |
| | | colDescription.FieldName = "Description"; |
| | | colDescription.MinWidth = 100; |
| | | colDescription.Name = "colDescription"; |
| | | colDescription.OptionsColumn.AllowEdit = false; |
| | | colDescription.Visible = true; |
| | | colDescription.VisibleIndex = 5; |
| | | colDescription.Width = 100; |
| | | // |
| | | // HydroMonitorValueListCtrl |
| | | // |
| | |
| | | private DevExpress.XtraGrid.Columns.GridColumn colDescription; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colUnitName; |
| | | private BindingSource hydroMonitorValueViewModelBindingSource; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colRelation; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colParter; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colFlags; |
| | | } |
| | | } |