| | |
| | | private void InitializeComponent() |
| | | { |
| | | components = new Container(); |
| | | DevExpress.XtraGrid.GridFormatRule gridFormatRule1 = new DevExpress.XtraGrid.GridFormatRule(); |
| | | FormatConditionRule2ColorScale formatConditionRule2ColorScale1 = new FormatConditionRule2ColorScale(); |
| | | gridControl1 = new DevExpress.XtraGrid.GridControl(); |
| | | gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); |
| | | xhsProjectSimulationAnalysisViewModelBindingSource = new BindingSource(components); |
| | | gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView(); |
| | | colName = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colDescription = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colCode = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colType = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | colPropStatus = new DevExpress.XtraGrid.Columns.GridColumn(); |
| | | ((ISupportInitialize)gridControl1).BeginInit(); |
| | | ((ISupportInitialize)gridView1).BeginInit(); |
| | | ((ISupportInitialize)xhsProjectSimulationAnalysisViewModelBindingSource).BeginInit(); |
| | | ((ISupportInitialize)gridView1).BeginInit(); |
| | | SuspendLayout(); |
| | | // |
| | | // gridControl1 |
| | |
| | | gridControl1.TabIndex = 0; |
| | | gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gridView1 }); |
| | | // |
| | | // gridView1 |
| | | // |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colName, colDescription, colCode, colType }); |
| | | gridView1.GridControl = gridControl1; |
| | | gridView1.Name = "gridView1"; |
| | | gridView1.OptionsView.ShowGroupPanel = false; |
| | | // |
| | | // xhsProjectSimulationAnalysisViewModelBindingSource |
| | | // |
| | | xhsProjectSimulationAnalysisViewModelBindingSource.DataSource = typeof(XhsProjectSimulationAnalysisViewModel); |
| | | // |
| | | // gridView1 |
| | | // |
| | | gridView1.Appearance.HeaderPanel.Options.UseTextOptions = true; |
| | | gridView1.Appearance.HeaderPanel.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { colName, colDescription, colCode, colType, colPropStatus }); |
| | | gridFormatRule1.Name = "Format0"; |
| | | gridFormatRule1.Rule = formatConditionRule2ColorScale1; |
| | | gridView1.FormatRules.Add(gridFormatRule1); |
| | | gridView1.GridControl = gridControl1; |
| | | gridView1.Name = "gridView1"; |
| | | gridView1.OptionsView.ShowGroupPanel = false; |
| | | gridView1.CustomDrawCell += gridView1_CustomDrawCell; |
| | | // |
| | | // colName |
| | | // |
| | | colName.AppearanceCell.Options.UseTextOptions = true; |
| | | colName.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colName.FieldName = "Name"; |
| | | colName.Name = "colName"; |
| | | colName.Visible = true; |
| | | colName.VisibleIndex = 0; |
| | | colName.VisibleIndex = 2; |
| | | colName.Width = 107; |
| | | // |
| | | // colDescription |
| | | // |
| | | colDescription.AppearanceCell.Options.UseTextOptions = true; |
| | | colDescription.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colDescription.FieldName = "Description"; |
| | | colDescription.Name = "colDescription"; |
| | | colDescription.Visible = true; |
| | | colDescription.VisibleIndex = 1; |
| | | colDescription.VisibleIndex = 4; |
| | | colDescription.Width = 387; |
| | | // |
| | | // colCode |
| | | // |
| | | colCode.AppearanceCell.Options.UseTextOptions = true; |
| | | colCode.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colCode.FieldName = "Code"; |
| | | colCode.Name = "colCode"; |
| | | colCode.Visible = true; |
| | | colCode.VisibleIndex = 2; |
| | | colCode.VisibleIndex = 1; |
| | | colCode.Width = 127; |
| | | // |
| | | // colType |
| | | // |
| | | colType.AppearanceCell.Options.UseTextOptions = true; |
| | | colType.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center; |
| | | colType.FieldName = "Type"; |
| | | colType.Name = "colType"; |
| | | colType.Visible = true; |
| | | colType.VisibleIndex = 3; |
| | | colType.VisibleIndex = 0; |
| | | colType.Width = 258; |
| | | // |
| | | // colPropStatus |
| | | // |
| | | colPropStatus.FieldName = "PropStatus"; |
| | | colPropStatus.Name = "colPropStatus"; |
| | | colPropStatus.Visible = true; |
| | | colPropStatus.VisibleIndex = 3; |
| | | colPropStatus.Width = 77; |
| | | // |
| | | // XhsProjectSimulationAnalysisCtrl |
| | | // |
| | |
| | | Name = "XhsProjectSimulationAnalysisCtrl"; |
| | | Size = new Size(890, 581); |
| | | ((ISupportInitialize)gridControl1).EndInit(); |
| | | ((ISupportInitialize)gridView1).EndInit(); |
| | | ((ISupportInitialize)xhsProjectSimulationAnalysisViewModelBindingSource).EndInit(); |
| | | ((ISupportInitialize)gridView1).EndInit(); |
| | | ResumeLayout(false); |
| | | } |
| | | |
| | |
| | | private DevExpress.XtraGrid.Columns.GridColumn colDescription; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colCode; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colType; |
| | | private DevExpress.XtraGrid.Columns.GridColumn colPropStatus; |
| | | } |
| | | } |